/* --- General Setup --- */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    color: #c0c0c0; /* Silver text for Dark Mode */
    background: #121212; /* Deep Ops Black */
    line-height: 1.5; 
    min-height: 100vh; /* FIX: Forces body to fill screen height */
}

h1, h2, h3, h4, h5, h6, strong { 
    color: #ffffff; /* Pure white headers */
    font-family: 'Alfa Slab One', cursive; /* Tactical/Blocky Font */
    letter-spacing: 1px;
    font-weight: 400; 
}

/* Container & Grid System */
.container { width: 80%; margin: 0 auto; padding: 3em 0; }
.row { display: flex; flex-wrap: wrap; }
.col-6 { flex: 0 0 50%; padding: 1em; box-sizing: border-box; }
.col-4 { flex: 0 0 33.33%; padding: 1em; box-sizing: border-box; }
.image.fit img { width: 100%; border-radius: 4px; } 

/* --- Header Section --- */
#header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
    background-image: url("../../images/banner.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding-bottom: 25vh; /* Moves content up on PC */
}

/* Lifts the text block higher on PC */
#header .inner {
    transform: translateY(-20vh);
}

/* 1. The Greeting (Hi, and Sawasdee Krap) - Pure White */
#header h1 { 
    font-size: 3em; 
    margin-bottom: 0.5em;
    color: #ffffff !important; 
    text-shadow: 4px 4px 0px #000000; /* Heavy black shadow for readability */
}

/* 2. The Brand Name (PapaThaiGG) - Rainbow Gradient */
#header h1 strong {
    background: linear-gradient(to right, #4dfbfb, #ffe66d) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(4px 4px 0px #000000);
}

/* Subtitle Styling (Heavy Contrast) */
#header p { 
    font-family: 'Verdana', sans-serif;
    font-weight: bold;
    font-size: 1.6em; 
    line-height: 1.4em;
    color: #ffffff;
    -webkit-text-stroke: 1px black;
    text-shadow: 
        3px 3px 0 #000, 
        0px 0px 10px #000, 
        0px 0px 20px #000;
    margin-bottom: 3em;
}

/* --- TACTICAL BUTTON STYLES --- */
input[type="submit"],
input[type="reset"],
input[type="button"],
.button,
.tactical-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0.5em;
    
    /* Tactical Look */
    border-radius: 0.2rem; 
    background-color: rgba(0, 0, 0, 0.9) !important; /* Darker bg for contrast against sun */
    border: 2px solid rgba(255, 255, 255, 0.8);
    
    /* Text Styling */
    color: #fff !important;
    font-family: 'Alfa Slab One', cursive;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    
    /* Animation */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Hover Effects */
input[type="submit"]:hover,
.button:hover,
.tactical-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000 !important;
    border-color: #fff;
    transform: translateY(2px);
}

/* Specific "Primary" Button (Watch Live) */
.tactical-btn.primary {
    border-color: #00ff00; 
    color: #00ff00 !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.tactical-btn.primary:hover {
    background-color: #00ff00;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

/* --- Layout Utilities --- */
.command-center {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2em;
}

ul.actions {
    list-style: none;
    padding-left: 0;
}

/* --- Footer --- */
#footer { background: #121212; padding: 2em; text-align: center; } /* Dark Footer */
.icons { list-style: none; padding: 0; display: flex; justify-content: center; margin-top: 20px;}
.icons li { margin: 0 10px; font-size: 1.5em; }
.copyright { font-size: 0.8em; color: #888; }


/* --- NUCLEAR FOOTER LINK FIX --- */
/* This targets every possible way the browser sees a link */
#footer a, footer a, .icons a, .copyright a {
    color: #FFD700 !important; /* Force Gold */
    text-decoration: none;
}

#footer a:hover, footer a:hover {
    color: #ffffff !important; /* Force White on hover */
}


/* --- TACTICAL DARK MODE PATCH --- */
/* Fix the Loadout Boxes */
#loadout div[style*="background"] {
    background: rgba(255, 255, 255, 0.05) !important; 
    border-color: #444 !important;
}

/* Keep The Beast Gold */
#loadout div[style*="border: 2px solid #ffe66d"] {
    border-color: #ffe66d !important;
}

/* --- MOBILE & LAYOUT EMERGENCY FIX --- */

/* 1. GLOBAL SAFETY */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    min-height: 100vh !important; /* FIX: Enforce full viewport height */
    margin: 0 !important;
    padding: 0 !important;
    /* Added background safety here as well */
    background-color: #121212 !important; 
}

/* 2. FIX THE FOOTER */
.icons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
}
.icons li { margin: 5px 10px !important; }

/* 3. MOBILE TWEAKS (Phone Screen) */
@media screen and (max-width: 736px) {
    
    .col-6, .col-4 { flex: 0 0 100%; }
    
    /* Text Drop Zone */
    #header .inner {
        transform: translateY(0) !important;
        padding-top: 60px !important;
    }
    
    #header h1 { font-size: 2em; }

    /* THE FIX: Strict Flex Column */
    .command-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* This creates the perfect center line */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 15px !important; /* Consistent spacing between buttons */
    }

    /* THE FIX: Zero out side margins so they can't shift right */
    .tactical-btn {
        display: block !important;
        width: 80% !important; /* Slightly wider for better thumb reach */
        max-width: 320px !important;
        
        /* CRITICAL: Remove 'auto' and force 0 on sides. 
           Flexbox 'align-items: center' (above) will handle the centering now. */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important; 
        margin-bottom: 0 !important;
        
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* --- LIVE COMMAND CENTER BACKGROUND --- */
#live-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
    /* Using absolute path to guarantee it loads live */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/pic07.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

/* --- PIXEL LEAK SEAL (New Fix) --- */
/* This ensures the 'canvas' behind the site is black, not white */
html {
    background-color: #121212 !important;
    min-height: 100%;
}