/* style.css – Complete Grunge-Themed Styles for The Emerald Isle Site */

/*--------------------------------------
  COLOR PALETTE & ROOT VARIABLES
--------------------------------------*/
:root {
    --green-dark: #0F1A0F;
    /* almost-black forest */
    --green-moss: #273127;
    /* deep mossy tone */
    --gold: #8F7939;
    /* aged/brass gold */
    --cream: #C3B098;
    /* dusty parchment */
    --overlay-dark: rgba(0, 0, 0, 0.8);
    /* heavy dark overlay */
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/*--------------------------------------
  GLOBAL & BACKGROUND
--------------------------------------*/
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background:
        url('../img/hero-bg.png') center/cover no-repeat fixed,
        var(--green-dark);
    color: var(--cream);
    line-height: 1.5;
    padding-top: 4rem;
    /* space for fixed top nav */
    padding-bottom: 3rem;
    /* space for fixed bottom bar */
}

/*--------------------------------------
  FADE-IN ANIMATION
--------------------------------------*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------
  HERO SECTION
--------------------------------------*/
header.hero-bg {
    background:
        linear-gradient(var(--overlay-dark), var(--overlay-dark)),
        url('../img/hero-bg.png') center/cover no-repeat fixed;
    padding: 1rem 1rem;
    text-align: center;
    animation: fadeIn 1s ease-out both;
    margin-top: 20px;
}

header.hero-bg img {
    max-width: 220px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

header.hero-bg h1 {
    margin-top: 1rem;
    font-size: 2.5rem;
    color: var(--cream);
    text-shadow: var(--text-shadow);
    animation: fadeIn 1s 0.3s ease-out both;
}

header.hero-bg .btn {
    margin: 0.5rem;
    animation: fadeIn 1s 0.6s ease-out both;
}

/* Hero flex layout */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* stacks on mobile */
}

/* Logo size */
.hero-logo img {
    max-width: 400px !important;
    width: 100%;
    height: auto;
    animation: fadeIn 1s ease-out both;
}


/* Center text styling */
.hero-text {
    flex: 1 1 400px;
    /* grows, but never smaller than 400px */
}

.hero-text h1 {
    font-size: 1.75rem;
    /* slightly smaller for readability */
    line-height: 1.3;
    text-shadow: var(--text-shadow);
    margin: 0;
    animation: fadeIn 1s 0.3s ease-out both;
}

/* Buttons column */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
}

.hero-buttons .btn {
    min-width: 160px;
    animation: fadeIn 1s 0.6s ease-out both;
}

.hero-buttons .btn:first-child {
    margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .hero-buttons {
        align-items: center;
        width: 100%;
    }
}

/* Hero text divider */
.hero-text h1,
.hero-text .lead {
    margin: 0.5rem 0;
    text-shadow: var(--text-shadow);
}

/* styled gold divider */
.hero-divider {
    border: none;
    height: 2px;
    width: 60%;
    margin: 1rem auto;
    background: linear-gradient(to right,
            transparent,
            var(--gold),
            transparent);
}

/* smaller “lead” paragraph styling */
.hero-text .lead {
    font-size: 1.25rem;
    line-height: 1.4;
}


/*--------------------------------------
  BUTTONS
--------------------------------------*/
.btn-gold {
    background-color: var(--gold) !important;
    color: var(--green-dark) !important;
    border: 2px solid var(--gold) !important;
    text-shadow: var(--text-shadow) !important;
    transition: all 0.2s;
}

.btn-gold:hover {
    background-color: var(--green-moss) !important;
    color: var(--cream) !important;
}

/*--------------------------------------
  FEATURE CARDS
--------------------------------------*/
.feature-card {
    position: relative;
    background-color: rgba(15, 26, 15, 0.9);
    border: 1px solid var(--gold);
    border-radius: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(2px);
    animation: fadeIn 1s ease-out both;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/card-pattern.png') repeat;
    opacity: 0.1;
}

.feature-card .card-body {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    text-align: center;
}

.feature-card i {
    color: var(--gold);
}

.feature-card .card-title {
    margin-top: 0.5rem;
    color: var(--cream);
    font-weight: 600;
}

.feature-card .card-text {
    color: #bbb;
    font-size: 0.95rem;
}

.feature-card .btn-gold {
    margin-top: 1rem;
}

/*--------------------------------------
  ACCORDION (MODS PAGE)
--------------------------------------*/
.accordion-item {
    border: 1px solid var(--gold);
    background: transparent;
}

.accordion-button {
    background: var(--green-moss);
    color: var(--cream);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--green-dark);
    color: var(--cream) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(143, 121, 57, 0.5) !important;
}

.accordion-body {
    background: rgba(15, 26, 15, 0.9);
    color: #bbb;
    border-top: 1px solid var(--gold);
}

.accordion-body a {
    color: var(--gold) !important;
    text-decoration: none;
}

.accordion-body a:hover {
    color: var(--cream) !important;
    text-decoration: underline;
}

/*--------------------------------------
  TOP NAVIGATION BAR
--------------------------------------*/
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 2px solid var(--gold);
}

.top-nav .navbar-brand {
    font-size: 1.25rem;
    color: var(--gold) !important;
    font-weight: bold;
    text-shadow: var(--text-shadow);
}

.top-nav .navbar-toggler {
    border-color: var(--gold) !important;
}

.top-nav .navbar-toggler-icon {
    filter: invert(1);
}

.top-nav .nav-link {
    color: var(--cream) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.top-nav .nav-link:hover,
.top-nav .nav-link.active {
    color: var(--gold) !important;
}

/*--------------------------------------
  BOTTOM FLOATING FOOTER BAR
--------------------------------------*/
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    border-top: 1px solid var(--gold);
    z-index: 1020;
    text-align: center;
    color: #aaa;
}

.bottom-bar code {
    background: transparent;
    color: var(--cream);
    border: none;
}

/*--------------------------------------
  TEAM GRID & CARDS
--------------------------------------*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 1s ease-out both;
}

.team-card {
    position: relative;
    background: rgba(15, 26, 15, 0.8);
    border: 1px solid var(--gold);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(2px);
}

.team-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.9);
}

.team-card .card-body {
    padding: 1rem;
}

.team-card h5 {
    margin: 0.5rem 0 0.25rem;
    color: var(--cream);
}

.team-card p {
    margin: 0.2rem 0;
    color: #ccc;
    font-size: 0.9rem;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    margin-right: 0.25rem;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/card-pattern.png') repeat;
    opacity: 0.12;
    pointer-events: none;
}

/* Override Bootstrap’s default caret */
.accordion-button::after {
    /* remove the built-in icon */
    background-image: none !important;
    /* inject our own arrow */
    content: "\25BE";
    /* ▼ down-triangle */
    position: absolute;
    right: 1rem;
    /* same offset Bootstrap uses */
    font-size: 1rem;
    color: var(--gold);
    transition: transform 0.2s ease;
}

/* Rotate arrow when expanded */
.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    /* ▲ up-triangle */
}

/* PvE page list styling */
.pve-list .list-group-item {
    background: transparent;
    /* no box behind it */
    border: none;
    /* remove any borders */
    color: var(--cream) !important;
    /* force cream text */
    display: flex;
    align-items: center;
    padding-left: 0;
    /* flush with container */
    margin-bottom: 0.75rem;
    /* a bit of breathing room */
}

/* Make the icons big & gold */
.pve-list .list-group-item .bi {
    color: var(--gold) !important;
    font-size: 1.3rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    /* don’t squash the icon */
}

/* Mute the default bullet spacing */
.pve-list.list-group-flush .list-group-item+.list-group-item {
    border-top: none;
}

/* PvE banner with grungy overlay */
.pve-banner {
    height: 0;
    padding-top: 35%;
    /* 16:9 ratio (9/16 ≈ 56%, but for a shorter banner ~35%) */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/hero-scene.png') center/cover no-repeat;
    border-radius: 0.75rem;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* On smaller screens, make it taller for legibility */
@media (max-width: 768px) {
    .pve-banner {
        padding-top: 50%;
    }
}

/* Extra-light cream for bullet text */
:root {
    --cream-light: #F5EBDD;
    /* bright parchment tone */
}

/* Headline & intro copy on PvE page → use gold */
.pve-page h2,
.pve-page p {
    color: var(--cream) !important;
}

/* Bullet list items → extra contrast cream */
.pve-page .pve-list .list-group-item {
    color: var(--cream-light) !important;
}

/* (Icons already gold → keep them as-is) */

/* Gold headlines on Mods and Team pages */
.mods-page h2,
.team-page h2 {
    color: var(--cream) !important;
}

/*--------------------------------------
  RULES PAGE: gold header + cream-light bullets
--------------------------------------*/

/* gold intro text on Rules page */
.rules-page h2,
.rules-page p {
    color: var(--cream) !important;
}

/* bullet list styling */
.rules-page .rules-list .list-group-item {
    background: transparent;
    /* no boxed background */
    border: none;
    /* no borders */
    color: var(--cream-light) !important;
    /* high-contrast text */
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

/* gold icons */
.rules-page .rules-list .list-group-item .bi {
    color: var(--gold) !important;
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

/* Force all .link-gold anchors to be gold & non-underlined */
.link-gold {
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* On hover, switch to cream with an underline for clarity */
.link-gold:hover {
    color: var(--cream) !important;
    text-decoration: underline !important;
}

/* Team banner styling */
.team-banner {
    padding-top: 35%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/team-guardians.png') center/cover no-repeat;
    border-radius: 0.75rem;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .team-banner {
        padding-top: 50%;
    }
}

/* Rules banner styling */
.rules-banner {
    padding-top: 35%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/rules-banner.png') center/cover no-repeat;
    border-radius: 0.75rem;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .rules-banner {
        padding-top: 50%;
    }
}

/* Mods banner styling */
.mods-banner {
    padding-top: 35%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/mods-banner.png') center/cover no-repeat;
    border-radius: 0.75rem;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .mods-banner {
        padding-top: 50%;
    }
}

#server-stats {
    background: rgba(15, 26, 15, 0.85);
    border: 1px solid var(--gold);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

#server-stats h2 {
    color: var(--gold) !important;
}

/* Live Server Stats card */
.stats-card {
    background: rgba(15, 26, 15, 0.85);
    border: 1px solid var(--gold);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    /* ↘ cut top/bottom from 1rem → 0.25rem */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    max-width: 540px;
    text-align: center;
}

/* Ensure the iframe hugs the card tightly */
.stats-card iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 80px;
    /* height will still come from BattleMetrics script (~80px) */
}