/* Custom CSS using Grid Layout for structure - ADVANCED DARK THEME */

/* -----------------------------------
 * Global and Reset
 * ----------------------------------- */
:root {
    /* Rich, modern dark palette */
    --primary-color: #1a1a2e;      /* Deep Indigo/Navy - Primary Background */
    --secondary-color: #16213e;    /* Darker Indigo - Secondary/Sidebar Background */
    --accent-color: #e94560;       /* Bright Coral/Red - Highlight/Action Color */
    --text-color: #f0f0f0;         /* Soft Off-White - Main Text */
    --muted-text-color: #a0a0a0;   /* Muted Gray - Sub-text */
    --border-color: #2c3850;       /* Subtle Border/Separator */
    --shadow-dark: 0 8px 15px rgba(0, 0, 0, 0.4); 
    --shadow-inset: inset 0 0 10px rgba(0, 0, 0, 0.2);
    --border-radius: 6px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Clean, highly readable font */
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600; 
    letter-spacing: 0.5px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Advanced transition curve */
}

a:hover {
    color: #ff7f96; 
    text-decoration: underline;
    filter: brightness(1.2); /* Subtle glow effect */
}

/* -----------------------------------
 * Grid Layout Setup
 * ----------------------------------- */
.site-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Slightly wider, defined sidebar */
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--secondary-color); /* Darker inner background */
    box-shadow: var(--shadow-dark); 
    border-radius: 12px; /* Smoother rounded corners */
    overflow: hidden; 
}

.site-header {
    grid-column: 1 / 3; 
    padding: 20px 35px; 
    background: linear-gradient(90deg, #1a1a2e, #101828); /* Subtle gradient for depth */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
}

.main-menu {
    grid-column: 1 / 2;
    background-color: var(--secondary-color);
    padding: 30px 0; 
    border-right: 1px solid var(--border-color);
}

.content-area {
    grid-column: 2 / 3;
    padding: 40px; /* Increased padding */
    background-color: var(--primary-color);
}

.site-footer {
    grid-column: 1 / 3;
    background-color: #101828; /* Very dark footer */
    color: var(--muted-text-color);
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
    border-top: 1px solid var(--border-color);
}

/* -----------------------------------
 * Navigation Styling
 * ----------------------------------- */
.main-menu ul {
    list-style: none;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 14px 30px; 
    color: var(--text-color);
    border-left: 4px solid transparent; 
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-menu a:hover {
    background-color: var(--border-color); /* Lighter background on hover */
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color); 
    transform: translateX(8px); /* Subtle visual movement on hover */
    text-decoration: none;
}

/* -----------------------------------
 * Header/Auth Styling
 * ----------------------------------- */
.site-name {
    font-size: 1.8em;
    font-weight: 700; 
    color: white;
}

.auth-links a {
    color: var(--accent-color);
    margin-left: 20px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 1px solid var(--accent-color);
    text-transform: uppercase;
}

.auth-links a:hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5); /* Glowing button effect */
    transform: scale(1.05);
}

.auth-links span {
    color: var(--muted-text-color);
    margin-right: 10px;
}

/* -----------------------------------
 * Content Area Cards (High-impact content blocks)
 * ----------------------------------- */
.card {
    background-color: var(--secondary-color); 
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-inset); /* Soft inner shadow for depth */
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-dark), var(--shadow-inset);
    transform: translateY(-2px); /* Subtle 3D lift on hover */
}

/* --- Content Title Styling --- */
.content-area h2 {
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}