/* ============================================================
   guide.css — Shell Shockers Guide & Class page styles
   Complements game.css with guide-specific components
   ============================================================ */

/* ------------------------------------------------------------
   Guide Hero (top section with optional iframe)
   ------------------------------------------------------------ */
.guide-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}

.guide-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.guide-hero .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero with iframe embedded */
.guide-hero.has-iframe {
    padding-bottom: 2rem;
}

.guide-hero .game-frame {
    max-width: 1100px;
    margin: 2rem auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    background: #000;
    position: relative;
}

.guide-hero .game-frame iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.guide-hero .game-controls {
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ------------------------------------------------------------
   Guide Content Area
   ------------------------------------------------------------ */
.guide-content {
    padding: 3rem 2rem;
    background: #fff;
}

.guide-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Guide Sections (generic content blocks)
   ------------------------------------------------------------ */
.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 1rem;
    color: var(--text-dark, #222);
}

/* Section h2 border color variants */
.guide-section h2.border-green  { border-left: 4px solid #28a745; }
.guide-section h2.border-red    { border-left: 4px solid #ff6b6b; }
.guide-section h2.border-blue   { border-left: 4px solid #667eea; }
.guide-section h2.border-orange { border-left: 4px solid #ffa500; }
.guide-section h2.border-purple { border-left: 4px solid #9c27b0; }

.guide-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Section list */
.guide-section .section-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.guide-section .section-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.guide-section .section-list li::before {
    content: "✓";
    color: #28a745;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Section steps (numbered) */
.guide-section .section-steps {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.guide-section .section-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #f0faf3;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid #d4edda;
    transition: background 0.2s ease;
}

.guide-section .section-steps li:hover {
    background: #e2f5e9;
}

/* ------------------------------------------------------------
   CTA Button
   ------------------------------------------------------------ */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
    color: #fff;
}

.cta-button:active {
    transform: translateY(0);
}

/* ------------------------------------------------------------
   Stats Table (weapon class pages)
   ------------------------------------------------------------ */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.stats-table th,
.stats-table td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-size: 0.95rem;
}

.stats-table thead th {
    background: #333;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.stats-table td:first-child {
    font-weight: 600;
    color: var(--text-dark, #222);
}

/* Comparison table variant */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.comparison-table th,
.comparison-table td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-dark, #222);
}

/* ------------------------------------------------------------
   Class Card Grid (classes index page)
   ------------------------------------------------------------ */
.class-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.class-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.class-card .class-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.class-card .class-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark, #222);
    margin-bottom: 0.3rem;
}

.class-card .class-type {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.class-card .class-tagline {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.class-card .class-stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-card .stat-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #555;
    border: 1px solid #eee;
}

/* Card color variants */
.class-card[data-class="eggk-47"]    { border-top: 4px solid #ff6b6b; }
.class-card[data-class="eggk-47"] .class-icon   { background: #fff0f0; }
.class-card[data-class="eggk-47"] .class-type    { color: #ff6b6b; }

.class-card[data-class="scrambler"]  { border-top: 4px solid #ffa500; }
.class-card[data-class="scrambler"] .class-icon  { background: #fff9f0; }
.class-card[data-class="scrambler"] .class-type   { color: #ffa500; }

.class-card[data-class="free-ranger"] { border-top: 4px solid #28a745; }
.class-card[data-class="free-ranger"] .class-icon { background: #f0faf3; }
.class-card[data-class="free-ranger"] .class-type  { color: #28a745; }

.class-card[data-class="rpegg"]      { border-top: 4px solid #e74c3c; }
.class-card[data-class="rpegg"] .class-icon      { background: #fdf0f0; }
.class-card[data-class="rpegg"] .class-type       { color: #e74c3c; }

.class-card[data-class="whipper"]    { border-top: 4px solid #667eea; }
.class-card[data-class="whipper"] .class-icon    { background: #f0f2ff; }
.class-card[data-class="whipper"] .class-type     { color: #667eea; }

.class-card[data-class="crackshot"]  { border-top: 4px solid #9c27b0; }
.class-card[data-class="crackshot"] .class-icon  { background: #f8f0fa; }
.class-card[data-class="crackshot"] .class-type   { color: #9c27b0; }

.class-card[data-class="tri-hard"]   { border-top: 4px solid #00bcd4; }
.class-card[data-class="tri-hard"] .class-icon   { background: #f0fbfc; }
.class-card[data-class="tri-hard"] .class-type    { color: #00bcd4; }

/* ------------------------------------------------------------
   Matchup Grid (class detail pages)
   ------------------------------------------------------------ */
.matchup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.matchup-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border: 1px solid #eee;
    transition: box-shadow 0.2s ease;
}

.matchup-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.matchup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.matchup-vs {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark, #222);
}

.matchup-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matchup-badge.win  { background: #d4edda; color: #155724; }
.matchup-badge.lose { background: #f8d7da; color: #721c24; }
.matchup-badge.even { background: #fff3cd; color: #856404; }

.matchup-tip {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Tier List (classes index)
   ------------------------------------------------------------ */
.tier-list {
    margin: 1.5rem 0;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.tier-label {
    font-size: 1.2rem;
    font-weight: 800;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.tier-label.tier-s  { background: #ff6b6b; }
.tier-label.tier-a  { background: #ffa500; }
.tier-label.tier-a- { background: #ffc107; color: #333; }
.tier-label.tier-b  { background: #28a745; }

.tier-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.tier-class-name {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: var(--text-dark, #222);
}

.tier-reason {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* ------------------------------------------------------------
   Timeline (version history)
   ------------------------------------------------------------ */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0 1rem 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.55rem;
    top: 0.7rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-event {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Related Links Section
   ------------------------------------------------------------ */
.guide-related-links {
    padding: 2rem;
    background: #f8f9fa;
}

.guide-related-links .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.guide-related-links h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark, #222);
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-link-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark, #222);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-link-card::before {
    content: "→";
    color: #667eea;
    font-weight: 700;
}

/* ------------------------------------------------------------
   Class Detail Page — weapon overview header
   ------------------------------------------------------------ */
.class-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.class-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.class-detail-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    border-left: none !important;
    padding-left: 0 !important;
}

.class-detail-info .class-tagline {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* Best maps */
.best-maps-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.best-maps-list li {
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #667eea;
}

.best-maps-list .map-name {
    font-weight: 700;
    color: var(--text-dark, #222);
    display: block;
    margin-bottom: 0.2rem;
}

.best-maps-list .map-reason {
    font-size: 0.9rem;
    color: #666;
}

/* Other classes nav (bottom of class detail page) */
.other-classes {
    padding: 2rem;
    background: #f8f9fa;
}

.other-classes .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.other-classes h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark, #222);
}

/* ------------------------------------------------------------
   Responsive — 768px
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .guide-hero {
        padding: 2rem 1rem;
    }

    .guide-hero h1 {
        font-size: 1.8rem;
    }

    .guide-hero .game-frame iframe {
        height: 400px;
    }

    .guide-content {
        padding: 2rem 1rem;
    }

    .class-card-grid {
        grid-template-columns: 1fr;
    }

    .matchup-grid {
        grid-template-columns: 1fr;
    }

    .related-links-grid {
        grid-template-columns: 1fr;
    }

    .class-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .tier-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comparison-table,
    .stats-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td,
    .stats-table th,
    .stats-table td {
        padding: 0.6rem 0.8rem;
    }
}

/* ------------------------------------------------------------
   Responsive — 480px
   ------------------------------------------------------------ */
@media (max-width: 480px) {
    .guide-hero h1 {
        font-size: 1.4rem;
    }

    .guide-hero .game-frame iframe {
        height: 300px;
    }

    .guide-section h2 {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .class-card {
        padding: 1.2rem;
    }

    .class-card .class-name {
        font-size: 1.1rem;
    }

    .comparison-table,
    .stats-table {
        display: block;
        overflow-x: auto;
    }
}
