/* Brawl Stars Ranked Draft Guide — Styles */
:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fed7aa;
    --bg: #0f0f12;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-dark: #070709;
    --text: #e8e8ed;
    --text-muted: #9898a8;
    --border: #2a2a3a;
    --tier-s: #ff6b35;
    --tier-a: #f5c542;
    --tier-b: #7cb5ec;
    --accent: #7c3aed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 40%, #1a0a00 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    background: var(--orange);
    color: #000;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

/* TOC */
.toc {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.toc-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
}

.toc-inner a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.toc-inner a:hover {
    color: var(--orange);
    background: rgba(249,115,22,0.1);
}

/* SECTIONS */
.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-dark {
    background: var(--bg-dark);
}

main {
    padding-bottom: 0;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.section > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

/* INFO BOX */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 24px 0;
}

.info-box h3 {
    color: var(--orange);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.info-box.warning {
    border-color: rgba(249,115,22,0.3);
    background: rgba(249,115,22,0.05);
}

.info-box ol, .info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* CARD GRID */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* TIER LIST */
.tier-section {
    margin-bottom: 40px;
}

.tier-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tier-s { color: var(--tier-s); }
.tier-a { color: var(--tier-a); }
.tier-b { color: var(--tier-b); }

.tier-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.brawler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.brawler-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid;
    transition: transform 0.2s;
}

.brawler-card:hover { transform: translateX(4px); }

.tier-s-card { border-left-color: var(--tier-s); }
.tier-a-card { border-left-color: var(--tier-a); }
.tier-b-card { border-left-color: var(--tier-b); }

.brawler-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.brawler-role {
    font-size: 0.8rem;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brawler-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* STRATEGY BLOCK */
.strategy-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 24px 0;
}

.strategy-block h3 {
    color: var(--orange);
    margin-bottom: 14px;
}

.strategy-block ul {
    padding-left: 20px;
}

.strategy-block li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* BAN PRIORITY TABLE */
.ban-priority {
    margin-top: 32px;
}

.ban-priority h3 {
    color: var(--orange);
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: rgba(249,115,22,0.1);
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

tbody tr:hover {
    background: rgba(249,115,22,0.05);
}

/* COMPOSITIONS */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s;
}

.comp-card:hover {
    border-color: var(--orange);
}

.comp-card h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.comp-brawlers {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.comp-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.comp-weak {
    color: #e87272;
    font-size: 0.88rem;
}

/* MODE SECTION */
.mode-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.mode-section:hover {
    border-color: var(--orange);
}

.mode-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.mode-section strong {
    color: var(--orange);
}

.mode-section ul {
    padding-left: 20px;
    margin-top: 8px;
}

.mode-section li {
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ERRORS */
.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.error-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
}

.error-card h3 {
    color: #e87272;
    font-size: 1rem;
    margin-bottom: 8px;
}

.error-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* PRO TIPS */
.pro-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.pro-tip {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    transition: border-color 0.2s;
}

.pro-tip:hover {
    border-color: var(--orange);
}

.tip-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--orange);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.pro-tip h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 6px;
}

.pro-tip p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* RESOURCES */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}

.resource-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.resource-card h4 {
    color: var(--orange);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FOOTER */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.8rem !important;
    margin-top: 8px;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero { padding: 50px 16px 40px; }
    .section { padding: 40px 16px; }
    .toc-inner { gap: 2px; padding: 10px 12px; }
    .toc-inner a { padding: 5px 10px; font-size: 0.78rem; }
    .pro-tip { flex-direction: column; gap: 10px; }
    th, td { padding: 10px 12px; font-size: 0.85rem; }
}
