/* --- Global Reset & Base Styles --- */
body {
    /* Background: Very dark, near black for a deep, tech feel */
    background-color: #0F0F1A; 
    color: #E0E0E0; /* Light gray for main text */
    font-family: 'Consolas', 'Courier New', monospace; /* Monospaced/Tech font for style */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Define the accent color variable for consistency */
:root {
    --accent-color: #f78800; /* Bright Cyan/Neon Blue */
    --hover-color: #00DDEE;
    --dark-section: #1A1A2E;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Header & Navigation --- */
header {
    /* Black background with a slight dark blue tint */
    background-color: #111118; 
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Neon border for high-tech look */
    border-bottom: 2px solid var(--accent-color); 
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap */
}

.logo img {
    height: 45px;
}

.logo h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--accent-color); /* Highlight the Corporation name */
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a {
    color: #D0D0D0;
    margin-left: 25px;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}


/* --- Main Content Layout --- */
.container {
    max-width: 1300px;
    margin: 30px auto; /* Centered with top/bottom margin */
    padding: 0 20px;
    display: flex;
    gap: 30px; /* Increased gap for visual separation */
}

/* Unified styling for both columns */
.left, .right {
    background-color: var(--dark-section); /* Darker blue-ish background for content boxes */
    padding: 30px;
    border-radius: 6px;
    /* Subtle blue glow/border effect */
    border: 1px solid rgba(0, 255, 255, 0.2); 
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1); 
}

.left {
    flex: 2; /* Takes up more space */
    min-width: 60%;
}

.right {
    flex: 1; /* Takes up less space */
    min-width: 30%;
}


/* --- Typography & Elements --- */
h1, h2, h3 {
    color: #FFFFFF;
    margin-top: 0; 
    margin-bottom: 15px;
    font-weight: normal; /* Less aggressive look */
}

h2 {
    color: var(--accent-color); /* Accent color for main section titles */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.3);
}

/* List Styling (Important for facts/developers/projects) */
ul {
    list-style: none; 
    padding-left: 0;
    margin-bottom: 25px;
}

ul li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    margin-bottom: 8px;
}

ul li::before {
    content: "//"; /* Custom sci-fi bullet point */
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 5px;
}

/* Discord Widget and Links */
.right iframe {
    /* Use the same border as the container for cohesion */
    border: 1px solid rgba(0, 255, 255, 0.2); 
}

.right a {
    display: block;
    margin: 10px 0;
    padding: 12px;
    background-color: var(--accent-color);
    color: #111118; /* Dark text on bright background */
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    /* Optional: Add a lift effect on hover */
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.6); 
}

.right a:hover {
    background-color: #FFFFFF;
    color: #0F0F1A;
    box-shadow: 0 0 15px var(--accent-color); 
}

/* Responsive Design for Mobile */
@media (max-width: 900px) {
    .container {
        flex-direction: column; /* Stacks columns vertically on mobile */
        margin: 20px 10px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        margin-top: 15px;
    }
    nav a {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* --- Page Specific Styles --- */

/* Style for individual allies entries (allies.html) */
.ally-entry {
    background-color: var(--dark-section); 
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    /* Orange bar on the left for data-block feel */
    border-left: 4px solid var(--accent-color); 
    box-shadow: 0 0 8px rgba(247, 136, 0, 0.15); /* Subtle orange glow */
}

.ally-entry h3 {
    color: #FFFFFF; 
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.ally-entry p {
    color: #C0C0C0; 
    margin-bottom: 10px;
}

.ally-entry a {
    /* Override block button style for inline ally links */
    display: inline-block !important; 
    padding: 0 !important;
    background-color: transparent !important;
    color: var(--hover-color) !important; /* Uses the cyan secondary color for a different look */
    text-align: left !important;
    box-shadow: none !important;
    font-weight: bold;
    margin-top: 5px;
}

.ally-entry a:hover {
    text-decoration: underline;
    color: var(--accent-color) !important;
}


/* Styling for individual event blocks (events.html) */
.event-entry {
    background-color: var(--dark-section); 
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid rgba(247, 136, 0, 0.3); /* Soft orange border */
    box-shadow: 0 0 10px rgba(247, 136, 0, 0.1); /* Subtle orange glow */
}

/* Featured Event Styling (Makes important events stand out) */
.event-entry.featured {
    border: 3px solid var(--accent-color); /* Strong orange border */
    box-shadow: 0 0 15px rgba(247, 136, 0, 0.4); /* Brighter glow */
}

.event-entry h3 {
    color: var(--accent-color); /* Event title in orange */
    margin-bottom: 8px;
    font-size: 1.5em;
}

.event-entry p {
    color: #CCCCCC;
    margin: 5px 0;
}

.event-entry a {
    /* Style the RSVP link as a clean button-like element */
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px;
    background-color: var(--accent-color);
    color: #111118;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: none; /* Remove conflicting shadow */
}

.event-entry a:hover {
    background-color: #FFFFFF;
    color: #0F0F1A;
}

/* Styling for the past events list */
.event-history ul li {
    color: #D0D0D0;
    margin-bottom: 12px;
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 900px) {
    .container {
        flex-direction: column; /* Stacks columns vertically on mobile */
        margin: 20px 10px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        margin-top: 15px;
    }
    nav a {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* --- Footer Styling --- */
footer {
    /* Same dark background as the header */
    background-color: #111118; 
    color: #888; /* Slightly gray text */
    text-align: center;
    padding: 20px 0;
    /* Use the accent color for a dividing line */
    border-top: 2px solid var(--accent-color); 
    font-size: 0.9em;
}

/* Style for links within the footer */
footer a {
    color: #D0D0D0; /* Light gray for readability */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color); /* Hover to the orange accent color */
}

/* Horizontal line for separating elements in the footer (optional) */
footer .separator {
    margin: 0 10px;
    color: #444;
}

/* Calculator container */
.calculator {
    background-color: var(--dark-section);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(247,136,0,0.2);
    box-shadow: 0 0 10px rgba(247,136,0,0.1);
    max-width: 400px;
    margin: 40px auto;
}

/* Headings */
.calculator h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(0,255,255,0.3);
    padding-bottom: 5px;
}

/* Input labels and fields */
.calculator label {
    display: inline-block;
    width: 80px;
    margin-bottom: 10px;
}
.calculator input {
    width: 60px;
    padding: 5px;
    background-color: #0F0F1A;
    border: 1px solid var(--accent-color);
    color: #E0E0E0;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

/* Button */
.calculator button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #111118;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.calculator button:hover {
    background-color: #FFFFFF;
    color: #0F0F1A;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Result display */
.result {
    margin-top: 20px;
    font-weight: bold;
    color: #E0E0E0;
    background-color: rgba(0,255,255,0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(0,255,255,0.2);
}