/* ===== WUWA Color Palette ===== */
/*
Obsidian: #0F1115 - Backgrounds / Primary Surfaces
Echo Grey: #2D323B - Secondary Panels / Borders
Resonance Gold: #FFD700 - Accents / Call-to-Action
Frequency White: #E6E9EF - Primary Text
Tacet Bronze: #B8860B - Subtle Details
*/

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F1115, #1a1a1e, #0F1115);
    color: #E6E9EF;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Links ===== */
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:visited {
    color: #4ade80;
}

a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Navigation links - override general link styles */
.nav-link {
    color: #9ca3af !important;
}

.nav-link:visited {
    color: #9ca3af !important;
}

.nav-link:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.nav-link.active {
    color: #FFD700 !important;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #0F1115 0%, #2D323B 100%);
    padding: 15px 0;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.site-header .container {
    position: relative;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700, #B8860B, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.tagline {
    color: #9ca3af;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.header-tacet-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: auto;
    opacity: 0.8;
    z-index: 1;
}

.logo {
    position: relative;
    z-index: 2;
}

/* ===== Navigation ===== */
.main-nav {
    background: rgba(45, 50, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 0;
}

.nav-link {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
    border-bottom-color: #B8860B;
}

.nav-link.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border-bottom-color: #FFD700;
}

/* ===== Main Content ===== */
.main-content {
    padding: 30px 0;
    flex: 1;
}

/* ===== Typography ===== */
h1, h2, h3 {
    margin: 25px 0 15px;
    color: #FFD700;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 15px 0;
    color: #E6E9EF;
}

/* ===== Forms ===== */
form {
    max-width: 600px;
    margin: 30px 0;
    background: rgba(45, 50, 59, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

label {
    display: block;
    margin: 15px 0 8px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(15, 17, 21, 0.6);
    border: 2px solid rgba(184, 134, 11, 0.3);
    border-radius: 6px;
    color: #E6E9EF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(15, 17, 21, 0.8);
}


/* ===== Footer ===== */
footer {
    margin-top: 80px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #0F1115 0%, #2D323B 100%);
    border-top: 3px solid #FFD700;
    text-align: center;
    color: #9ca3af;
    box-shadow: 0 -4px 20px rgba(255, 215, 0, 0.1);
}

footer p {
    margin: 10px 0;
    color: #9ca3af;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== Desktop Navigation ===== */
@media (min-width: 769px) {
    .nav-wrapper {
        padding-left: 45px;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 15px 15px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    form {
        padding: 20px;
    }
}

/* Giveaway Boxes */
.giveaways-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.giveaway-box {
    background: rgba(45, 50, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(184, 134, 11, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.giveaway-box:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
}

.giveaway-box.upcoming {
    cursor: default;
    opacity: 0.8;
}

.giveaway-box.upcoming:hover {
    transform: none;
}


/* Previous Giveaways */
.previous-giveaways {
    margin: 30px 0;
}

.previous-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 50, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-bottom: 15px;
}


/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #2D323B;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.confirm-modal {
    background: #8B0000;
    color: white;
}

.confirm-modal p {
    font-weight: bold;
    margin: 10px 0;
}

.warning {
    color: #FFD700;
    margin-top: 20px;
}

/* Popups */
.success-popup, .error-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 2000;
}

.success-popup {
    background: #28a745;
    color: white;
}

.error-popup {
    background: #dc3545;
    color: white;
}

/* Upcoming Giveaways */
.upcoming-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.upcoming-box {
    background: rgba(45, 50, 59, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(184, 134, 11, 0.2);
    opacity: 0.7;
}


.not-started-notice {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.not-started-notice h3 {
    color: #FFD700;
    margin-bottom: 15px;
}
