/* ================================
   BASE STYLING
   ================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top, #151822 0, #05060a 50%, #020308 100%);
    color: #f5f5f7;
    text-align: center;
}

/* ================================
   NAVIGATION BAR (matches main site)
   ================================ */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 7, 12, 0.96);
    padding: 14px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul li {
    margin: 0 6px;
}

nav ul li a {
    color: #e5e7f0;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
    color: #111111;
    background: #f5b638;
}

/* ================================
   MAIN WRAPPER
   ================================ */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ================================
   RULES SECTION (updated style)
   ================================ */

.rules {
    padding: 32px 28px 36px;
    background: rgba(10, 13, 22, 0.96);
    margin: 50px auto 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.rules h2 {
    color: #f5b638;
    font-size: 26px;
    margin-bottom: 16px;
    text-align: left;
}

.rules p {
    font-size: 14px;
    color: #c7cbe4;
    margin-bottom: 16px;
}

/* Rules list */
.rules ul {
    list-style: none;
    padding: 0;
    margin-top: 6px;
}

.rules ul li {
    background: rgba(12, 15, 26, 0.96);
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid rgba(245, 182, 56, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Gold bullet */
.rules ul li::before {
    content: '•';
    color: #f5b638;
    font-size: 16px;
    line-height: 1.3;
}

/* ================================
   FOOTER (optional, if used)
   ================================ */

footer {
    background: #05060b;
    padding: 14px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 12px;
    color: #9da1bc;
}

/* ================================
   EVENTS PAGE LAYOUT
   ================================ */

.events-page {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.events-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* calendar bigger, updates smaller */
    gap: 24px;
}

/* reuse .rule-block card style but tweak if needed */
.events-panel,
.updates-panel {
    /* .rule-block already sets background, border, radius, etc. */
}

/* ================================
   CALENDAR STYLES
   ================================ */

.calendar {
    margin-top: 8px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-month {
    text-align: center;
}

.cal-month-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.cal-year {
    display: block;
    font-size: 13px;
    color: #c7cbe4;
}

.cal-nav {
    border-radius: 999px;
    border: 1px solid rgba(245, 182, 56, 0.7);
    background: rgba(7, 10, 19, 0.95);
    color: #f5f5f7;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.cal-nav:hover {
    background: rgba(245, 182, 56, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.cal-day-label {
    text-align: center;
    font-size: 12px;
    color: #f5d48a;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(245, 182, 56, 0.3);
}

.cal-day {
    min-height: 56px;
    border-radius: 10px;
    background: rgba(7, 10, 19, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: #e5e7f0;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.cal-day.empty {
    background: transparent;
    border: none;
}

.cal-day.event {
    border-color: rgba(245, 182, 56, 0.7);
    box-shadow: 0 0 0 1px rgba(245, 182, 56, 0.25);
}

.cal-date-num {
    font-weight: 600;
    margin-bottom: 4px;
}

.cal-badge {
    margin-top: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(245, 182, 56, 0.18);
    border: 1px solid rgba(245, 182, 56, 0.7);
    color: #f5d48a;
}

.calendar-note {
    font-size: 11px;
    color: #9da1bc;
    margin-top: 4px;
}

/* ================================
   UPDATES LIST
   ================================ */

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.update-item {
    background: rgba(7, 10, 19, 0.96);
    border-radius: 12px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.update-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 182, 56, 0.18);
    border: 1px solid rgba(245, 182, 56, 0.7);
    color: #f5d48a;
}

.update-date {
    font-size: 11px;
    color: #9da1bc;
}

.update-item h4 {
    font-size: 14px;
    margin: 0 0 4px;
}

.update-item p {
    font-size: 13px;
    color: #c7cbe4;
    margin: 0;
}

/* Responsive layout */
@media (max-width: 900px) {
    .events-layout {
        grid-template-columns: 1fr;
    }
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Base style for both link groups */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Left group: align to left */
.footer-links-primary {
    justify-content: flex-start;
}

/* Right group: align to right */
.footer-links-social {
    justify-content: flex-end;
}

/* Pill buttons */
.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 182, 56, 0.5);
    color: #f5f5f7;
    text-decoration: none;
    background: rgba(10, 13, 22, 0.96);
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.1s;
}

.footer-pill:hover {
    background: linear-gradient(135deg, #f5b638, #f2992e);
    color: #111111;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
}

.footer-bottom p {
    font-size: 11px;
    color: #9da1bc;
}

/* Base style for auth buttons */
.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.1s;
}

/* Log In – outline style */
.btn-auth-outline {
    border: 1px solid rgba(245, 182, 56, 0.7);
    color: #f5f5f7;
    background: transparent;
}

.btn-auth-outline:hover {
    background: rgba(245, 182, 56, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Sign Up – filled gradient style */
.btn-auth-filled {
    border: 1px solid rgba(245, 182, 56, 0.9);
    color: #111111;
    background: linear-gradient(135deg, #f5b638, #f2992e);
    box-shadow: 0 6px 16px rgba(242, 153, 46, 0.55);
}

.btn-auth-filled:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(242, 153, 46, 0.7);
}
/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    nav {
        padding: 12px 16px;
    }

    nav ul {
        gap: 4px;
    }

    main {
        padding: 30px 16px 40px;
    }

    .rules {
        width: 100%;
        padding: 24px 18px 28px;
        margin: 30px auto;
    }

    .rules h2 {
        font-size: 22px;
        text-align: center;
    }

    .rules ul li {
        font-size: 13px;
    }
}
