/**
 * R6 Tracker Pro — theme layout styles.
 * Extends the Core plugin design system (CSS custom properties).
 */

/* Skip link */
.r6-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--r6-accent);
	color: #fff;
	padding: 8px 16px;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.r6-skip-link:focus { left: 0; }

/* Header */
.r6-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(11, 15, 25, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--r6-border);
}
.r6-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}
.r6-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.r6-logo-text {
	font-family: var(--r6-font-headline);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--r6-text);
}
.r6-logo-text span { color: var(--r6-accent); }

/* Desktop nav */
.r6-nav-desktop .r6-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.r6-nav-desktop .r6-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--r6-text-secondary);
	text-decoration: none;
	font-family: var(--r6-font-headline);
	font-weight: 600;
	border-radius: 8px;
	transition: color 150ms, background 150ms;
}
.r6-nav-desktop .r6-menu a:hover,
.r6-nav-desktop .r6-menu .current-menu-item > a {
	color: var(--r6-text);
	background: rgba(230, 57, 70, 0.14);
}
.r6-nav-desktop .menu-item-has-children { position: relative; }
.r6-nav-desktop .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--r6-card);
	border: 1px solid var(--r6-border);
	border-radius: 12px;
	padding: 8px;
	list-style: none;
}
.r6-nav-desktop .menu-item-has-children:hover > .sub-menu,
.r6-nav-desktop .menu-item-has-children:focus-within > .sub-menu { display: block; }

.r6-header-actions { display: flex; align-items: center; gap: 12px; }
.r6-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 1px solid var(--r6-border);
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
}
.r6-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--r6-text); }

/* Player search panel */
.r6-player-search {
	border-top: 1px solid var(--r6-border);
	padding: 20px 0;
	background: var(--r6-bg-secondary);
}
.r6-search-form {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.r6-search-form { grid-template-columns: 2fr 1fr auto; align-items: end; }
}
.r6-search-note { color: var(--r6-text-muted); font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }

/* Mobile drawer */
.r6-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: var(--r6-card);
	border-left: 1px solid var(--r6-border);
	z-index: 300;
	padding: 20px;
	transform: translateX(0);
}
.r6-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.r6-drawer-close {
	background: none; border: 1px solid var(--r6-border); color: var(--r6-text);
	font-size: 1.5rem; border-radius: 8px; width: 40px; height: 40px; cursor: pointer;
}
.r6-drawer-menu { list-style: none; margin: 0; padding: 0; }
.r6-drawer-menu a {
	display: block; padding: 12px 8px; color: var(--r6-text-secondary);
	text-decoration: none; font-family: var(--r6-font-headline); font-weight: 600;
	border-bottom: 1px solid var(--r6-border);
}
.r6-drawer-scrim {
	position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 250;
}

/* Hero */
.r6-hero {
	padding: 72px 0 56px;
	background:
		radial-gradient(600px 300px at 20% 0%, rgba(230,57,70,0.12), transparent),
		radial-gradient(600px 300px at 85% 20%, rgba(0,212,255,0.08), transparent),
		var(--r6-bg);
	border-bottom: 1px solid var(--r6-border);
	text-align: center;
}
.r6-eyebrow {
	color: var(--r6-cyan);
	font-family: var(--r6-font-headline);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.8rem;
}
.r6-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); margin: 12px 0; }
.r6-hero-sub { color: var(--r6-text-secondary); max-width: 640px; margin: 0 auto 28px; }
.r6-hero-search {
	display: grid; gap: 12px; max-width: 720px; margin: 0 auto; text-align: left;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.r6-hero-search { grid-template-columns: 2fr 1fr auto; align-items: end; }
}
.r6-hero-note { min-height: 1.4em; color: var(--r6-text-muted); margin-top: 10px; }
.r6-hero-links { margin-top: 20px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.r6-hero-links a { color: var(--r6-cyan); text-decoration: none; font-weight: 600; }
.r6-hero-links a:hover { text-decoration: underline; }

/* Sections */
.r6-section { padding: 56px 0; }
.r6-section-alt { background: var(--r6-bg-secondary); border-top: 1px solid var(--r6-border); border-bottom: 1px solid var(--r6-border); }
.r6-section h2 { font-size: 1.9rem; margin-bottom: 24px; }

/* FAQ */
.r6-faq { display: grid; gap: 12px; }
.r6-faq summary { cursor: pointer; font-family: var(--r6-font-headline); font-weight: 600; color: var(--r6-text); font-size: 1.1rem; }
.r6-faq summary::marker { color: var(--r6-accent); }

/* Breadcrumbs */
.r6-breadcrumbs { color: var(--r6-text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.r6-breadcrumbs a { color: var(--r6-cyan); text-decoration: none; }

/* Footer */
.r6-footer {
	background: var(--r6-bg-secondary);
	border-top: 1px solid var(--r6-border);
	padding: 48px 0 24px;
	margin-top: 32px;
}
.r6-footer-grid { margin-bottom: 32px; }
.r6-footer-col h3 {
	font-family: var(--r6-font-headline);
	color: var(--r6-text);
	font-size: 1.05rem;
	margin-bottom: 12px;
}
.r6-footer-links { list-style: none; margin: 0; padding: 0; }
.r6-footer-links a { color: var(--r6-text-secondary); text-decoration: none; display: block; padding: 5px 0; font-size: 0.95rem; }
.r6-footer-links a:hover { color: var(--r6-cyan); }
.r6-footer-bottom {
	border-top: 1px solid var(--r6-border);
	padding-top: 20px;
	color: var(--r6-text-muted);
	font-size: 0.85rem;
}
.r6-footer-disclaimer { margin-bottom: 8px; }

/* Responsive: collapse desktop nav under 1024px */
@media (max-width: 1023px) {
	.r6-nav-desktop { display: none; }
	.r6-nav-toggle { display: flex; }
	.r6-search-toggle { display: none; }
}

/* Homepage sections (v1.1) */
.r6-section-lead { color: var(--r6-text-secondary); font-size: 1.1rem; max-width: 720px; margin: 0 0 28px; }
.r6-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.r6-section-head h2 { margin: 0; }
.r6-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px;
	background: linear-gradient(135deg, var(--r6-accent), #a11d28);
	color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
	font-family: var(--r6-font-headline);
}
.r6-steps { display: grid; gap: 16px; }
.r6-step { display: flex; gap: 18px; background: var(--r6-card); border: 1px solid var(--r6-border); border-radius: 14px; padding: 20px 22px; align-items: flex-start; }
.r6-step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.r6-step p { margin: 0; color: var(--r6-text-secondary); }
.r6-step .r6-step-num { margin-bottom: 0; flex-shrink: 0; }
.r6-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r6-checklist li { padding-left: 28px; position: relative; color: var(--r6-text-secondary); }
.r6-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--r6-cyan); font-weight: 700; }
.r6-checklist a { color: var(--r6-cyan); }
.r6-highlight-card { border-left: 3px solid var(--r6-cyan); }
.r6-notice-card { border-left: 3px solid var(--r6-warning); }
.r6-note { color: var(--r6-text-muted); font-size: 0.9rem; margin-top: 12px; }
.r6-winner { color: var(--r6-cyan); font-weight: 700; }
.r6-compare-form { margin: 18px 0 8px; }
.r6-compare-form .r6-btn { margin-top: 14px; }
/* Final CTA band */
.r6-cta { background: linear-gradient(135deg, #131a2b 0%, #1b1030 55%, #2b0f16 100%); border-top: 1px solid var(--r6-border); border-bottom: 1px solid var(--r6-border); padding: 72px 0; text-align: center; }
.r6-cta h2 { font-size: 2.2rem; margin: 0 0 12px; }
.r6-cta p { color: var(--r6-text-secondary); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.r6-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
	.r6-cta h2 { font-size: 1.6rem; }
	.r6-section-head { align-items: flex-start; flex-direction: column; }
}
