/* ==============================================
   ROTN TEAM WEBSITE - BASE STYLES & RESET
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 !important; /* Force no margins even with sidebar */
    padding: 0 !important; /* Force no padding even with sidebar */
}



/* ==============================================
   LAYOUT STRUCTURE
   ============================================== */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0; /* Ensure no margins */
    padding: 0; /* Ensure no padding */
}

.header {
    position: relative;
    width: 100%;
    height: 275px; /* Default height - can be overridden per page */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Ensure no margins */
    padding: 0; /* Ensure no padding */
    border: none; /* Ensure no borders */
    border-radius: 0; /* Ensure no border radius */
}

/* Force header to be full width even with sidebar class */
body.sidebar .header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure page wrapper doesn't add margins to header */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0; /* Ensure no margins */
    padding: 0; /* Ensure no padding */
}

/* Make sure the header is outside of any container constraints */
.page-wrapper > .header {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.header img {
    max-height: 200px;
    max-width: 90%;
    height: auto;
}

.navigation {
    background: #2c2c2c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
}

/* Force navigation to be full width even with sidebar class */
body.sidebar .navigation {
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem 0 !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #555;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    display: grid;
    gap: 2rem;
}

/* Default layout - no sidebar */
.main-container:not(.has-sidebar) {
    grid-template-columns: 1fr;
}

/* Sidebar layout */
.main-container.has-sidebar {
    grid-template-columns: 1fr 300px;
}

.content-area {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar {
    background: #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

/* ==============================================
   PAGE 1 - HOME STYLES
   ============================================== */
.page-home {
    background-color: #0a0a0a;
    /* background-image: url('../images/home-bg.jpg'); */
    /* background-size: cover; */
    /* background-attachment: fixed; */
    color: #fff;
}

.page-home .header {
    background-color: #ff6b35;
    /* background-image: url('../images/home-header.jpg'); */
}

.page-home .content-area {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    border: 2px solid #ff6b35;
}

.page-home .sidebar {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    border: 2px solid #ff6b35;
}

.page-home .footer {
    background: #ff6b35;
    color: #000;
}

/* ==============================================
   PAGE 2 - MEMBERS STYLES
   ============================================== */
.page-members {
    background-color: #1a1a2e;
    /* background-image: url('../images/members-bg.jpg'); */
    color: #fff;
}

.page-members .header {
    background-color: #16213e;
    /* background-image: url('../images/members-header.jpg'); */
}

.page-members .content-area {
    background: rgba(26, 26, 46, 0.95);
    color: #fff;
    border: 2px solid #0f3460;
}

.page-members .sidebar {
    background: rgba(22, 33, 62, 0.95);
    color: #fff;
    border: 2px solid #0f3460;
}

.page-members .footer {
    background: #0f3460;
}

/* ==============================================
   PAGE 3 - LEADERBOARDS STYLES
   ============================================== */
.page-leaderboards {
    background-color: #2d1b69;
    /* background-image: url('../images/leaderboards-bg.jpg'); */
    color: #fff;
}

.page-leaderboards .header {
    background-color: #8e44ad;
    /* background-image: url('../images/leaderboards-header.jpg'); */
}

.page-leaderboards .content-area {
    background: rgba(45, 27, 105, 0.95);
    color: #fff;
    border: 2px solid #8e44ad;
}

.page-leaderboards .sidebar {
    background: rgba(142, 68, 173, 0.2);
    color: #fff;
    border: 2px solid #8e44ad;
}

.page-leaderboards .footer {
    background: #8e44ad;
}

/* ==============================================
   PAGE 4 - FORUM STYLES
   ============================================== */
.page-forum {
    background-color: #0f4c75;
    /* background-image: url('../images/forum-bg.jpg'); */
    color: #fff;
}

.page-forum .header {
    background-color: #3282b8;
    /* background-image: url('../images/forum-header.jpg'); */
}

.page-forum .content-area {
    background: rgba(15, 76, 117, 0.95);
    color: #fff;
    border: 2px solid #3282b8;
}

.page-forum .sidebar {
    background: rgba(50, 130, 184, 0.3);
    color: #fff;
    border: 2px solid #3282b8;
}

.page-forum .footer {
    background: #3282b8;
}

/* ==============================================
   PAGE 5 - NEWS/BLOG STYLES
   ============================================== */
.page-news {
    background-color: #1e3a8a;
    /* background-image: url('../images/news-bg.jpg'); */
    color: #fff;
}

.page-news .header {
    background-color: #059669;
    /* background-image: url('../images/news-header.jpg'); */
}

.page-news .content-area {
    background: rgba(30, 58, 138, 0.95);
    color: #fff;
    border: 2px solid #059669;
}

.page-news .sidebar {
    background: rgba(5, 150, 105, 0.3);
    color: #fff;
    border: 2px solid #059669;
}

.page-news .footer {
    background: #059669;
}

/* ==============================================
   PAGE 6 - CONTACT STYLES
   ============================================== */
.page-contact {
    background-color: #7c2d12;
    /* background-image: url('../images/contact-bg.jpg'); */
    color: #fff;
}

.page-contact .header {
    background-color: #dc2626;
    /* background-image: url('../images/contact-header.jpg'); */
}

.page-contact .content-area {
    background: rgba(124, 45, 18, 0.95);
    color: #fff;
    border: 2px solid #dc2626;
}

.page-contact .sidebar {
    background: rgba(220, 38, 38, 0.3);
    color: #fff;
    border: 2px solid #dc2626;
}

.page-contact .footer {
    background: #dc2626;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Mobile (up to 599px) */
@media (max-width: 599px) {
    .header {
        height: 200px !important;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c2c2c;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

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

    .hamburger {
        display: flex;
    }

    .navigation {
        position: relative;
    }

    .main-container,
    .main-container.has-sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .content-area {
        padding: 1.5rem;
    }

    .sidebar {
        order: 2;
        margin-top: 1rem;
    }
}

/* Tablet (600px to 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
    .header {
        height: 240px !important;
    }

    .main-container.has-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        margin-top: 1rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .main-container.has-sidebar {
        grid-template-columns: 1fr 320px;
    }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Hidden class for JavaScript toggles */
.hidden {
    display: none !important;
}

/* Member grid for members page */
.member-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Article styling for news page */
article {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

article:last-child {
    border-bottom: none;
}