﻿/* ==========================
   🌟 Bright Color Variables 🌟
   ========================== */
:root {
    --color-bg: #D3D6DB; /* Base page background */
    --color-wrapper: #24303E; /* Wrapper + Topbar background */
    --color-topbar: #24303E;
    --color-panel: #243341; /* Panel + Fancy box background */
    --color-gold: #ffdf66; /* Logo/Accent gold */
    --color-gold-soft: #ffe9aa; /* Logo-text gold */
    --color-text: #ffffff;
    --color-text-muted: #f0f0f0;
    --color-nav: #f4f4f4;
    --color-nav-hover: #ffffff;
    --color-box-gradient-start: #243341;
    --color-box-gradient-end: #2D3A4B;
    --color-box-border: #2b3744;
    --color-roadbump-start: #24334114;
    --color-roadbump-end: #0000002A;
    --color-roadbump-inset-top: #2433410D;
    --color-roadbump-inset-bottom: #00000044;
}

/* ==========================
   🔧 Global Layout
   ========================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
}

.wrapper {
    margin: 0 auto; 
    background-color: var(--color-wrapper);
    padding: 32px;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
}

.topbar {
    background-color: var(--color-topbar);
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* ==========================
   🔱 Logo + Navigation
   ========================== */
    .logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .logo-group img {
        width: 32px;
        height: 32px;
    }

    .logo-group span {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-gold);
        letter-spacing: 1px;
    }

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--color-nav);
    font-weight: 500;
}

    nav a:hover {
        color: var(--color-nav-hover);
    }

/* ==========================
   🧱 Grid Layout
   ========================== */
.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto); /* Controls row height */
    gap: 32px;
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-5 {
    grid-column: span 5;
}

.col-span-6 {
    grid-column: span 6;
}

.row-span-1 {
    grid-row: span 1;
}

.row-span-2 {
    grid-row: span 2;
}

.row-span-3 {
    grid-row: span 3;
}

/* ==========================
   🪟 Panels
   ========================== */
.panel {
    background-color: var(--color-panel);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.fancy-box {
    box-sizing: border-box;
    border-radius: 6px;
    padding: 24px;
    background: linear-gradient(145deg, var(--color-box-gradient-start) 0%, var(--color-box-gradient-end) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.18), inset 1px 0 0 rgba(255, 255, 255, 0.04), inset -1px 0 0 rgba(0, 0, 0, 0.18), 0 0 0 1px var(--color-box-border), 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .fancy-box h2 {
        margin-top: 0;
        color: var(--color-text);
    }

    .fancy-box li {
        margin-bottom: 8px;
        color: var(--color-text-muted);
    }

    .fancy-box p {
        margin-bottom: 8px;
        color: var(--color-text-muted);
    }

/* ==========================
   ✨ Logo Text
   ========================== */
.logo-text span {
    font-family: 'Be Vietnam Pro', sans-serif;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--color-gold-soft);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* ==========================
   🛣️ Roadbump Divider
   ========================== */
hr.roadbump {
    border: none;
    height: 2px;
    background: linear-gradient(to bottom, var(--color-roadbump-start) 0%, var(--color-roadbump-end) 100%);
    box-shadow: inset 0 1px 0 var(--color-roadbump-inset-top), inset 0 -1px 0 var(--color-roadbump-inset-bottom);
    margin: 24px 0;
    border-radius: 1px;
}

.fullwidth-divider {
    margin: 0 -32px;
}

    .fullwidth-divider .roadbump {
        margin: 24px 0;
    }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #1f2a38;
    color: #f0f0f0;
    font-size: 1rem;
    box-sizing: border-box; /* <- fixes overflow */
    display: block;
}


    .form-control:focus {
        outline: none;
        border-color: #ffdf66;
        background-color: #263342;
    }

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        color: #f0f0f0;
        white-space: nowrap;
    }

/* Make textarea behave like inputs */
textarea.form-control {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}


label, legend {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #f0f0f0;
}

input[type="text"],
select,
textarea {
    max-width: 100%;
}

/* Top story layout */
.top-story {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

    .top-story img {
        width: 160px;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

.story-text h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #ffe9aa;
}

.story-text p {
    color: #e2e2e2;
    line-height: 1.4;
    margin: 0;
}

/* Sub stories layout */
.sub-stories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-story h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #ffdf66;
}

.sub-story p {
    margin: 0;
    color: #cfcfcf;
    line-height: 1.4;
}

.submit-button {
    margin-top: 16px; /* 👈 This adds the spacing */

    padding: 8px 16px; /* Reduced height */
    border: none;
    border-radius: 0; /* No rounded edges */
    background-color: #ffdf66;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

    /* Hover effect */
    .submit-button:hover {
        background-color: #ffe89a;
    }

/* For full-width button only in certain contexts */
.btn-block {
    display: block;
    width: 100%;
}

.event-card {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    background-color: #1b2732;
    border: 1px solid #2d3a4b;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

    .event-card img {
        width: 96px;
        height: 54px;
        border-radius: 4px;
        object-fit: cover;
    }

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .event-info h3 {
        margin: 0;
        font-size: 1rem;
        color: #ffe9aa;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .event-info h3 span {
            font-size: 0.8rem;
            color: #aaa;
            font-weight: 400;
        }

    .event-info p {
        margin: 4px 0 0;
        font-size: 0.9rem;
        color: #ccc;
        line-height: 1.3;
    }

    .event-info small {
        color: #888;
        font-size: 0.75rem;
    }

/* Nested columns (side-by-side) */
.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.org-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.org-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #ffe9aa;
}

.org-box p {
    margin: 0;
    color: #d0d0d0;
    line-height: 1.4;
}

.compact-news {
    margin-bottom: 0px; /* or 32px to match your default gap */
}

.epoch-box {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: linear-gradient(145deg, #283544 0%, #324050 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #2c3a4a, 0 8px 20px rgba(0, 0, 0, 0.25);
}

.epoch-governance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.epoch-box,
.vote-box {
    padding: 16px 20px;
    background: linear-gradient(145deg, #283544 0%, #324050 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #2c3a4a, 0 8px 20px rgba(0, 0, 0, 0.25);
}

    .epoch-box h3,
    .vote-box h3 {
        margin-top: 0;
        margin-bottom: 12px;
        color: #ffe9aa;
        font-size: 1.2rem;
    }

.epoch-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

    .epoch-stat .label {
        color: #aaa;
        font-size: 0.9rem;
    }

    .epoch-stat .value {
        color: #ffffff;
        font-weight: 600;
    }

.vote-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .vote-list li {
        font-size: 0.9rem;
        color: #f0f0f0;
        line-height: 1.4;
    }

.epoch-graph {
    margin: 12px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    background-color: #1e2a36;
    border-radius: 6px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
    height: 100px; /* 👈 clamp it */
}


    .epoch-graph canvas {
        width: 100%;
        height: 80px; /* 👈 or 100%, now it's stable */
        display: block;
        flex-shrink: 1;
    }


.epoch-graph-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffe9aa;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: 0.5px;
}

.org-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    background: rgba(255, 223, 102, 0.1);
    color: #ffdf66;
    border: 1px solid #ffdf66;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: inset 0 0 2px rgba(255, 223, 102, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.join-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 600px) {
    .join-buttons {
        flex-direction: row;
    }
}

.join-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.join-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffe066;
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .join-card:hover {
        background-color: #ffeb91;
    }

.join-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: #E5C85C; /* slightly bluish deep gray, matches your theme */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #2c3a4a, /* black-gray edge */
    0 8px 20px rgba(0, 0, 0, 0.25); /* glow */
}



    .join-icon svg {
        width: 18px;
        height: 18px;
    }

.join-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-title {
    font-weight: 600;
    color: #1a1a1a;
}

.join-sub {
    font-size: 0.9rem;
    color: #333;
}
