@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--color-bg: #0A1428;
	--color-surface-1: #0F1A2B;
	--color-surface-2: #132238;
	--color-border: #22304A;
	--color-line: #1B2A43;

	--color-gold: #C8AA6E;
	--color-gold-200: #F0E6D2;
	--color-gold-700: #8F7848;

	--color-text: #E6EAF2;
	--color-text-muted: #A0AEC0;
	--color-text-inverse: #0A1428;

	--color-hextech: #5383E8;
	--color-danger: #E34C4C;
	--color-success: #3FBF7F;
	--color-warning: #E6C200;
	--color-info: #4DA3FF;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--shadow-1: 0 1px 2px rgba(0,0,0,.3);
	--shadow-2: 0 8px 24px rgba(0,0,0,.35);
	--glow-gold: 0 0 0 3px rgba(200,170,110,.35);

	--font-display: "Cinzel", "Libre Baskerville", Georgia, serif;
	--font-ui: "Inter", "Roboto", "Segoe UI", system-ui, sans-serif;
	--font-mono: "Fira Code", Consolas, monospace;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-ui);
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
}

.container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--space-5);
}

/* Header */
.header {
	background: var(--color-surface-1);
	color: var(--color-gold-200);
	padding: 1rem 0;
	box-shadow: var(--shadow-1);
	border-bottom: 1px solid var(--color-gold-700);
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	text-decoration: none;
	color: var(--color-gold-200);
	font-family: var(--font-display);
}

.alpha-badge {
	font-size: 0.5em;
	background: var(--color-hextech);
	color: var(--color-text-inverse);
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm);
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-left: var(--space-2);
	vertical-align: super;
}

.nav {
	display: flex;
	gap: 2rem;
}

.nav-link {
	color: var(--color-gold-200);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
	background-color: rgba(200,170,110,0.12);
}

/* Hero Section */
.hero {
	background: var(--color-surface-1);
	color: var(--color-gold-200);
	padding: 4rem 0;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
}

.hero-title {
	font-size: 3rem;
	margin-bottom: 1rem;
	font-weight: 700;
	font-family: var(--font-display);
}

.hero-subtitle {
	font-size: 1.2rem;
	margin-bottom: 3rem;
	opacity: 0.9;
	color: var(--color-text);
}

/* Alert System */
.alert {
	border-radius: 8px;
	padding: 1.5rem;
	margin: 2rem auto 3rem auto;
	max-width: 800px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 1px solid transparent;
}

.alert-info {
	background: var(--color-surface-2);
	border: 1px solid var(--color-gold);
	color: var(--color-text);
	box-shadow: var(--shadow-2);
	position: relative;
}

.alert-info::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-gold), var(--color-warning), var(--color-gold));
	border-radius: 8px 8px 0 0;
}

.alert-info::after {
	content: '⚠';
	position: absolute;
	top: -8px;
	right: 16px;
	background: var(--color-warning);
	color: var(--color-text-inverse);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	border: 2px solid var(--color-surface-2);
}

.alert-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.alert-content strong {
	color: var(--color-gold);
	font-weight: 600;
}

.alert-toggle {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-gold-200);
	cursor: pointer;
	font-size: var(--font-size-sm);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
	font-family: var(--font-ui);
}

.alert-toggle:hover {
	background: rgba(200, 170, 110, 0.08);
	border-color: var(--color-gold);
	color: var(--color-gold);
}

.alert-toggle:focus-visible {
	outline: none;
	box-shadow: var(--glow-gold);
}

.toggle-icon {
	transition: transform 0.2s ease;
}

.alert-toggle.expanded .toggle-icon {
	transform: rotate(180deg);
}

.alert-accordion {
	max-height: 0 !important;
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	opacity: 0;
}

.alert-accordion.expanded {
	max-height: 800px !important;
	opacity: 1;
}

.accordion-content {
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-line);
	margin-top: var(--space-4);
}

.accordion-content h4 {
	color: var(--color-gold-200);
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-4);
	font-weight: 600;
	font-family: var(--font-display);
}

.champion-accordions {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

.champion-accordion {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.champion-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-3) var(--space-4);
	background: var(--color-surface-1);
	cursor: pointer;
	transition: background 0.2s ease;
	user-select: none;
}

.champion-accordion-header:hover {
	background: rgba(200, 170, 110, 0.05);
}

.champion-accordion-header h5 {
	color: var(--color-gold);
	font-size: var(--font-size-md);
	margin: 0;
	font-weight: 600;
	font-family: var(--font-display);
}

.accordion-icon {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	transition: transform 0.2s ease;
}

.champion-accordion-header.expanded .accordion-icon {
	transform: rotate(180deg);
}

.champion-accordion-content {
	max-height: 500px;
	overflow-y: auto;
	transition: max-height 0.3s ease-out;
	background: var(--color-surface-2);
}

/* Custom scrollbar styling to match the gold border */
.champion-accordion-content::-webkit-scrollbar {
	width: 8px;
}

.champion-accordion-content::-webkit-scrollbar-track {
	background: var(--color-surface-1);
	border-radius: 4px;
}

.champion-accordion-content::-webkit-scrollbar-thumb {
	background: var(--color-gold);
	border-radius: 4px;
	border: 1px solid var(--color-surface-2);
}

.champion-accordion-content::-webkit-scrollbar-thumb:hover {
	background: var(--color-gold-200);
}

/* Firefox scrollbar styling */
.champion-accordion-content {
	scrollbar-width: thin;
	scrollbar-color: var(--color-gold) var(--color-surface-1);
}

.champion-accordion-content.collapsed {
	max-height: 0;
}

.matchup-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-1);
	padding: var(--space-4);
	column-gap: var(--space-4);
}

.matchup-items span,
.matchup-items .matchup-link {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	padding: var(--space-1) 0;
	transition: color 0.2s ease;
	border-bottom: 1px solid rgba(200, 170, 110, 0.08);
	text-decoration: none;
	display: block;
}

.matchup-items span:last-child,
.matchup-items .matchup-link:last-child {
	border-bottom: none;
}

.matchup-items span:hover,
.matchup-items .matchup-link:hover {
	color: var(--color-gold);
	cursor: pointer;
}

.coming-soon {
	background: var(--color-surface-1);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	text-align: center;
	font-style: italic;
	color: var(--color-text-muted);
	margin: 0;
	border: 1px solid var(--color-border);
	position: relative;
}

.coming-soon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--color-gold), var(--color-hextech), var(--color-gold));
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Search Container */
.search-container {
	background: var(--color-surface-2);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-2);
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-border);
}

.mode-selector {
	display: flex;
	margin-bottom: 2rem;
	background: var(--color-surface-1);
	border-radius: var(--radius-md);
	padding: 4px;
	border: 1px solid var(--color-border);
}

.mode-btn {
	flex: 1;
	padding: 0.75rem 1rem;
	border: none;
	background: transparent;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s;
	color: var(--color-text);
}

.mode-btn.active {
	background: var(--color-surface-2);
	box-shadow: var(--shadow-1);
	border: 1px solid var(--color-border);
}

/* Search Interface */
.search-1v1,
.search-2v2 {
	display: none;
}

.search-1v1.active {
	display: flex;
	align-items: end;
	gap: 1rem;
	flex-wrap: wrap;
}

.search-2v2.active {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.teams-container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 2rem;
	align-items: start;
}

.team-section {
	background: var(--color-surface-1);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	border: 1px solid var(--color-border);
}

.team-section.your-team {
	border-color: var(--color-hextech);
}

.team-section.enemy-team {
	border-color: var(--color-danger);
}

.team-section h3 {
	margin-bottom: 1rem;
	color: var(--color-text);
	text-align: center;
	font-weight: 600;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid;
}

.team-section.your-team h3 {
	border-bottom-color: var(--color-hextech);
	color: var(--color-hextech);
}

.team-section.enemy-team h3 {
	border-bottom-color: var(--color-danger);
	color: var(--color-danger);
}

.champion-select {
	position: relative;
	margin-bottom: 1rem;
}

.champion-select label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--color-text-muted);
}

.champion-select input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.3s, box-shadow 0.2s;
	background: var(--color-surface-2);
	color: var(--color-text);
}

.champion-select input:focus {
	outline: none;
	border-color: var(--color-gold);
	box-shadow: var(--glow-gold);
}

.champion-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-surface-1);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	box-shadow: var(--shadow-2);
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

/* Custom scrollbar for champion dropdown */
.champion-dropdown::-webkit-scrollbar {
	width: 6px;
}

.champion-dropdown::-webkit-scrollbar-track {
	background: var(--color-surface-2);
	border-radius: 3px;
}

.champion-dropdown::-webkit-scrollbar-thumb {
	background: var(--color-gold);
	border-radius: 3px;
}

.champion-dropdown::-webkit-scrollbar-thumb:hover {
	background: var(--color-gold-200);
}

/* Firefox scrollbar for champion dropdown */
.champion-dropdown {
	scrollbar-width: thin;
	scrollbar-color: var(--color-gold) var(--color-surface-2);
}

.champion-option {
	padding: 0.75rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: background-color 0.2s;
	color: var(--color-text);
}

.champion-option:hover {
	background-color: rgba(200,170,110,.08);
}

.champion-option img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--color-gold);
}

/* Unavailable champion options styling */
.champion-option.unavailable {
	opacity: 0.5;
	color: var(--color-text-muted);
	cursor: not-allowed;
}

.champion-option.unavailable:hover {
	background-color: transparent;
}

.champion-option.unavailable img {
	opacity: 0.6;
	border-color: var(--color-text-muted);
}

.champion-option.unavailable span {
	color: var(--color-text-muted);
}

.champion-option.unavailable small {
	color: var(--color-text-muted);
	opacity: 0.7;
}

.vs-divider {
	font-weight: bold;
	font-size: 1.2rem;
	color: var(--color-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 1rem;
}

.search-btn {
	background: var(--color-gold);
	color: var(--color-text-inverse);
	border: 1px solid var(--color-gold-700);
	padding: 0.75rem 2rem;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
	margin-top: 1rem;
}

.search-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: var(--shadow-2);
}

/* Featured Matchups */
.featured-matchups {
	padding: 4rem 0;
	background: var(--color-bg);
}

.featured-matchups h3 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2rem;
	color: var(--color-gold-200);
	font-family: var(--font-display);
}

.matchup-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.matchup-card {
	background: var(--color-surface-2);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 1.5rem;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s;
	box-shadow: var(--shadow-1);
}

.matchup-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-2);
	border-color: var(--color-gold);
}

.champion-pair {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.champion {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}

.champion-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--color-gold);
}

.champion span {
	font-weight: 500;
	font-size: 0.9rem;
	text-align: center;
}

.vs {
	font-weight: bold;
	color: var(--color-gold);
	font-size: 1.1rem;
}

/* Footer */
.footer {
	background: var(--color-surface-1);
	color: var(--color-gold-200);
	text-align: center;
	padding: 2rem 0;
	margin-top: 4rem;
	border-top: 1px solid var(--color-border);
}

.footer p {
	opacity: 0.9;
	font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
	display: none !important;
}

.text-center {
	text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-container {
    background-color: var(--color-surface-1);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) 0;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
}

.breadcrumb-link {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-gold-200);
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* ===== FAQ STYLES ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.faq-question {
    color: var(--color-gold);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    font-family: var(--font-ui);
}

.faq-answer {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-ui);
}

/* ===== POWER SPIKE TYPE BADGES ===== */
.spike-minor {
    background: var(--color-secondary);
    color: var(--color-text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.spike-major {
    background: var(--color-gold);
    color: var(--color-text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.spike-critical {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ===== ITEM SPIKES TABLE STYLES ===== */
.item-spikes-table {
    border-collapse: collapse;
    width: 100%;
}

.item-spikes-table .item-name {
    background: var(--color-surface-2);
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    min-width: 200px;
}

.item-spikes-table .item-type {
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    text-align: center;
    vertical-align: middle;
    min-width: 80px;
}

.item-spikes-table .item-description {
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    line-height: 1.4;
    vertical-align: top;
    text-align: left;
}
