/* GLOBAL STYLES - Base styling for all pages */

:root {
    /* Typography */
    --font-heading: 'Mozilla Headline', sans-serif;
    --font-body: 'Crimson Text', serif;
    
    /* Colors */
    --color-primary: #ffaa00;
    --color-secondary: #ffffff;
    --color-background: #000000;
    --color-text: #ffffff;
    --color-success: #00ff00;
    --color-error: #ff4444;
    --color-warning: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
}

/* Links */
a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    transition: all 0.3s ease;
}

a:hover {
    color: #cccccc;
    border-bottom-color: currentColor;
}

a:visited {
    color: #ffffff;
    border-bottom-color: currentColor;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main SPOODBLORT logo styling */
header h1 a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

header h1 a::after {
    content: "🥊";
    display: inline-block;
    transform: scaleX(-1);
    margin-left: 0.2em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p, span, div, td, th, li {
    font-family: var(--font-body);
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

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

/* Header Layout */
header {
    position: relative;
}

/* Top-right header actions (Help, Logout) */
.header-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1100;
}

.header-actions a,
.header-actions button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.header-actions .logout-form {
    margin: 0;
}

.header-actions img {
    width: 28px;
    height: 28px;
    display: block;
}

@media (max-width: 768px) {
    .header-actions {
        top: 6px;
        right: 6px;
        gap: 8px;
    }
    .header-actions img {
        width: 24px;
        height: 24px;
    }
}
/* Top-left social icons (Discord, YouTube) */
.social-icons {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1100;
}

.social-icons a {
    border: none;
}

.social-icons img {
    width: 28px;
    height: 28px;
    display: block;
}

@media (max-width: 768px) {
    .social-icons {
        top: 6px;
        left: 6px;
        gap: 8px;
    }
    .social-icons img {
        width: 24px;
        height: 24px;
    }
}

/* Weather Advisory Indicator (header badge when banner dismissed) */
.weather-indicator {
    display: none; /* Hidden by default, shown when advisory is dismissed */
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 80, 80, 0.6);
    background: rgba(180, 40, 40, 0.85);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 50, 50, 0.25);
    z-index: 1000;
    white-space: nowrap;
    font-size: 0.75rem;
    animation: indicatorGlow 2s ease-in-out infinite;
}

.weather-indicator:hover {
    background: rgba(200, 50, 50, 0.95);
}

@keyframes indicatorGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 50, 50, 0.25); }
    50% { box-shadow: 0 2px 14px rgba(255, 50, 50, 0.5); }
}

/* Chaos Weather Advisory (main banner) */
.chaos-weather-advisory {
    display: block;
    width: auto;
    max-width: 520px;
    margin: 18px auto;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 80, 80, 0.5);
    background: linear-gradient(135deg, rgba(60, 20, 20, 0.92), rgba(80, 30, 30, 0.88));
    box-shadow: 0 4px 16px rgba(255, 50, 50, 0.18);
    text-align: center;
    position: relative;
}

.temporal-lightning {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1500;
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

.temporal-lightning::before,
.temporal-lightning::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
}

.temporal-lightning::before {
    background: radial-gradient(circle at 40% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 252, 210, 0.75) 8%, rgba(255, 255, 255, 0.05) 58%), radial-gradient(circle at 70% 60%, rgba(173, 216, 255, 0.7) 0%, rgba(173, 216, 255, 0) 60%);
    filter: blur(2px);
}

.temporal-lightning::after {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 70%);
    clip-path: polygon(52% 0%, 58% 12%, 47% 30%, 60% 45%, 49% 72%, 56% 90%, 46% 100%, 41% 84%, 52% 62%, 41% 46%, 52% 18%, 40% 0%);
    transform-origin: 50% 0;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.temporal-lightning.strike {
    animation: temporalLightningFlash 0.6s ease-in-out forwards;
}

.temporal-lightning.strike::before {
    opacity: 1;
    animation: temporalHaloPulse 0.6s ease-out forwards;
}

.temporal-lightning.strike::after {
    opacity: 1;
    animation: temporalBoltFlicker 0.6s steps(3, end) forwards;
}

@keyframes temporalLightningFlash {
    0% { opacity: 0; }
    5% { opacity: 1; }
    15% { opacity: 0.65; }
    40% { opacity: 0.12; }
    100% { opacity: 0; }
}

@keyframes temporalHaloPulse {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.03); }
    25% { opacity: 0.85; transform: scale(1.08); }
    45% { opacity: 0.3; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1.2); }
}

@keyframes temporalBoltFlicker {
    0% { opacity: 1; transform: scaleY(1.1) translateX(-1%); }
    10% { transform: scaleY(1.05) translateX(2%); }
    20% { transform: scaleY(1.2) translateX(-3%); }
    35% { opacity: 0.6; transform: scaleY(0.9) translateX(1%); }
    60% { opacity: 0.25; transform: scaleY(0.8) translateX(-2%); }
    100% { opacity: 0; transform: scaleY(0.7) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .temporal-lightning {
        display: none !important;
    }
}

.chaos-weather-advisory .advisory-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advisory-icon {
    font-size: 1.1rem;
}

.advisory-text {
    flex: 1;
    text-align: left;
}

.advisory-title {
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffaaaa;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.advisory-body {
    color: #ddd;
    font-size: 0.8rem;
    line-height: 1.4;
}

.advisory-dismiss {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #ff6666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.advisory-dismiss:hover,
.advisory-dismiss:focus {
    opacity: 1;
    outline: none;
}

@media (max-width: 520px) {
    .chaos-weather-advisory {
        max-width: 90%;
        padding: 10px 14px;
    }
    .advisory-title { font-size: 0.75rem; }
    .advisory-body { font-size: 0.7rem; }
}
}

@keyframes dismissThrob {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.06); }
    50% { transform: scale(0.98); }
    75% { transform: scale(1.03); }
}

@keyframes scanline {
    0% { top: -2px; }
    100% { top: calc(100% + 2px); }
}

.weather-emoji {
    font-size: 1rem;
}

.weather-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes weatherIndicatorPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 64, 64, 0.25); }
    45% { box-shadow: 0 8px 20px rgba(255, 92, 92, 0.35); }
}

@keyframes indicatorFlicker {
    0%, 96%, 100% { filter: none; }
    97% { filter: hue-rotate(10deg) saturate(1.4) contrast(1.2); }
    98% { filter: hue-rotate(-12deg) saturate(1.6) contrast(1.4); }
    99% { filter: hue-rotate(6deg) saturate(1.3) contrast(1.2); }
}

/* Mobile responsive for weather indicator */
@media (max-width: 768px) {
    .weather-indicator {
        top: 5px;
        right: 10px;
        padding: 6px 8px;
    }
    
    .weather-text {
        font-size: 0.7rem;
    }
    
    .weather-emoji {
        font-size: 1rem;
    }
}

/* Navigation */
nav {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

nav a {
    margin: 0 1rem;
    font-weight: bold;
}

/* User Display Name Styling */
.user-display-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-weight: bold;
}

.user-display-name .color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* Header Credits number styling (bold white with heavy black drop shadow) */
.header-credits-num {
    color: #ffffff;
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(0,0,0,1); /* solid black outline (WebKit) */
    /* multi-layered shadows to approximate an outline + heavy drop */
    text-shadow:
        /* outline */
        0 1px 0 #000,
        0 -1px 0 #000,
        1px 0 0 #000,
        -1px 0 0 #000,
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        /* drop glow */
        0 0 10px rgba(0,0,0,0.95),
        0 2px 14px rgba(0,0,0,0.9);
}

/* Logout Link Styling */
.logout-link {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 2px solid currentColor !important;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 1rem !important;
    padding: 0 !important;
    transition: all 0.3s ease;
}

.logout-link:hover {
    color: #cccccc !important;
    background: none !important;
    border-bottom-color: currentColor !important;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ffffff;
}

th {
    font-weight: bold;
    background-color: #000000;
}

/* Fight status colors */
.status-live {
    color: #00ff00;
    font-weight: bold;
}

.status-completed {
    color: #888888;
}

.status-voided {
    color: #888888;
    font-style: italic;
}

.status-upcoming {
    color: #ffffff;
}

/* Clickable fight rows */
.fight-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fight-row:hover {
    background-color: #222222;
}

.fights-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.fights-table th,
.fights-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.fights-table th {
    background-color: #111;
    font-weight: bold;
}

/* Forms */
form {
    margin: 1rem 0;
}

input, button, select {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    padding: 8px 12px;
    margin: 4px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
}

button {
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #333333;
}

/* Fight Actions */
.fight-actions {
    margin-top: 10px;
}

.live-button {
    display: inline-block;
    padding: 8px 16px;
    background: #ff4444;
    color: #fff !important;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #ff4444;
    animation: pulse-glow 2s infinite;
}

.live-button:hover {
    background: #fff;
    color: #ff4444 !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.7); }
    100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    nav a {
        display: block;
        margin: 0.5rem 0;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 6px 8px;
    }
} 

/* Site Header */
.site-header {
    background: #000000;
    border-bottom: 2px solid #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: normal;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(255, 170, 0, 0.5);
    transition: all 0.3s ease;
}

.site-title:hover {
    color: var(--color-primary);
    text-shadow: 2px 2px 8px rgba(255, 170, 0, 0.8);
}

.site-title::before {
    content: "🥊 ";
}

.site-title::after {
    content: " 🥊";
} 