/* Enhanced WoW-Inspired CSS - Well Rested Guild */
:root {
    /* Primary Gold Colors - Darker, subdued tones */
    --gold-bright: #c9a876;
    --gold-medium: #b8945f;
    --gold-dark: #9a7b4f;
    --gold-darker: #7a6340;

    /* Navy/Blue Colors - Colder, darker tones */
    --navy-deepest: #030508;
    --navy-deep: #0a0f16;
    --navy-medium: #15232e;
    --navy-light: #1e3a52;
    --blue-bright: #3b6a99;
    --blue-alliance: #2d5a8a;

    /* Background & Cards */
    --background: linear-gradient(180deg, #0a0f16 0%, #030508 100%);
    --card-bg: rgba(21, 35, 46, 0.9);
    --card-bg-hover: rgba(30, 58, 82, 0.95);
    --card-border: rgba(184, 148, 95, 0.35);
    --card-border-glow: rgba(201, 168, 118, 0.5);

    /* Text Colors */
    --text-primary: #e8e8e8;
    --text-secondary: #a8b8c8;
    --text-gold: #c9a876;
    --text-muted: #6a7a88;

    /* Accent Colors */
    --accent-alliance: #2d5a8a;
    --accent-horde: #8a0000;
    --success: #00cc00;
    --warning: #cc7700;
    --danger: #cc2222;

    /* WoW Class Colors */
    --class-warrior: #C79C6E;
    --class-paladin: #F58CBA;
    --class-hunter: #ABD473;
    --class-rogue: #FFF569;
    --class-priest: #FFFFFF;
    --class-shaman: #0070DE;
    --class-mage: #69CCF0;
    --class-warlock: #9482C9;
    --class-druid: #FF7D0A;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--navy-deepest);
    background-image:
        radial-gradient(ellipse at top, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    color: var(--gold-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-bright);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: rgba(10, 15, 22, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--gold-bright);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.subtitle {
    color: var(--text-secondary);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-secondary);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-bright);
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(184, 148, 95, 0.1);
    color: var(--gold-bright);
}

.admin-link {
    color: var(--warning) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gold-medium);
    color: var(--gold-bright);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(184, 148, 95, 0.15);
    border-color: var(--gold-bright);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(3, 5, 8, 0.8), rgba(10, 15, 22, 0.95)),
                url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--gold-dark);
    position: relative;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 15, 22, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    min-width: 100px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.card h2, .card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold-dark);
}

/* Guild Quest Section */
.guild-quest {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--gold-dark);
    background: linear-gradient(135deg, rgba(21, 35, 46, 0.95) 0%, rgba(10, 15, 22, 0.95) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quest-icon {
    font-size: 2.5rem;
}

.quest-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    color: var(--gold-bright);
    font-size: 2rem;
}

.quest-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.quest-content p {
    margin: 0;
}

/* Raid Schedule Widget */
.schedule-highlight {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-day {
    display: flex;
    align-items: center;
    background: rgba(184, 148, 95, 0.08);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.schedule-day:hover {
    background: rgba(184, 148, 95, 0.12);
    border-left-color: var(--gold-bright);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.day-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.day-info h3 {
    margin: 0;
    font-size: 1.3rem;
    border: none;
    padding: 0;
    color: var(--gold-bright);
}

.day-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* News Feed */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(184, 148, 95, 0.2);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-left: 2px solid var(--gold-medium);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.news-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--gold-bright);
}

.news-type {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-type.blue-post {
    background: var(--blue-alliance);
    color: white;
}

.news-type.guild-news {
    background: var(--gold-bright);
    color: var(--navy-deep);
}

.news-type.announcement {
    background: var(--warning);
    color: var(--navy-deep);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Guild Info */
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(184, 148, 95, 0.15);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-item .value {
    color: var(--gold-bright);
    font-weight: 700;
}

.info-item .recruiting {
    color: var(--success);
}

/* Quick Links */
.quick-links ul {
    list-style: none;
}

.quick-links li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(184, 148, 95, 0.15);
    transition: all 0.3s ease;
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links li:hover {
    border-left: 2px solid var(--gold-medium);
}

.quick-links a {
    display: block;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.quick-links a:hover {
    color: var(--gold-bright);
}

/* Progress Widget */
.progress-item {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gold-dark);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-darker), var(--gold-medium));
    transition: width 0.5s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold-medium);
    color: var(--navy-deep);
    border: 2px solid var(--gold-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: var(--gold-bright);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-medium);
    border: 2px solid var(--gold-dark);
}

.btn-secondary:hover {
    background: rgba(184, 148, 95, 0.1);
    border-color: var(--gold-medium);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: 2px solid var(--danger);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-danger:hover {
    background: #dd1111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
footer {
    background: var(--navy-deep);
    border-top: 2px solid var(--gold-dark);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* WoW Class Colors for Roster */
.class-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.role-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-tank {
    background: linear-gradient(135deg, #4a90e2, #2d6ba8);
    color: white;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.role-healer {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.role-dps {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        padding: 1rem;
        gap: 0;
        border-bottom: 2px solid var(--gold-medium);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deepest);
    border-left: 1px solid rgba(184, 148, 95, 0.15);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 5px;
    border: 2px solid var(--navy-deepest);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-medium);
}

/* Selection */
::selection {
    background: var(--gold-dark);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--gold-dark);
    color: var(--text-primary);
}
