/* website/static/css/portal.css */

:root {
    /* Bright, clean backgrounds */
    --bg-main: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-surface-alt: #e5e7eb;
    
    /* High-contrast text */
    --text-main: #111827;
    --text-muted: #4b5563;
    
    /* Vibrant accents */
    --accent-red: #e11d48;
    --accent-red-hover: #be123c;
    --accent-gold: #d97706;
    
    /* Modern typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   FORM STYLING (Restored from V1)
   ========================================================================== */
/* Target Django's default form structure (p > label + input) */
form p input, 
form p textarea, 
form p select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 0.5rem;
}

/* The blue "glow" when a member clicks into a box */
form p input:focus, 
form p textarea:focus, 
form p select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Style the labels above the boxes */
form p label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #212529;
}

/* Error messages (like "Password too short") */
.errorlist {
    color: #dc3545;
    list-style: none;
    padding-left: 0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Help text (like "Your password must be 16 characters") */
.helptext, .password-helptext {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   MODERN COMPONENTS (From Light Version)
   ========================================================================== */
.shot {
    border: 1px dashed #d1d5db;
    background: var(--bg-surface);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.shot-text {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Badges & Kickers */
.kicker, .label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 65ch;
    font-weight: 400;
}

/* Interactive Buttons */
.btn-red, .btn-ghost {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-red {
    background: var(--accent-red);
    color: #fff;
    border: 1px solid var(--accent-red);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-red:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    color: #fff;
}

.btn-ghost {
    border: 1px solid #d1d5db;
    color: var(--text-main);
    background: #ffffff;
}

.btn-ghost:hover {
    border-color: var(--text-main);
    background: var(--bg-surface);
    transform: translateY(-2px);
    color: var(--text-main);
}

/* Blockquotes */
.story blockquote {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.05) 0%, transparent 100%);
    padding-block: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Light Navigation */
nav.v2-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}

.wordmark { color: var(--text-main); }
.wordmark em { color: var(--accent-gold); font-weight: 500; }

/* --- REPLACED: Nav Link & Hover Animation --- */
nav.v2-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

nav.v2-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav.v2-nav .nav-link:hover { 
    color: var(--text-main); 
}

nav.v2-nav .nav-link:hover::before {
    width: 100%;
}
/* ------------------------------------------ */

nav.v2-nav .btn-login {
    border: 1px solid #d1d5db;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

nav.v2-nav .btn-login:hover {
    background: var(--text-main);
    color: #fff;
}

/* Special gold highlight for primary nav items */
nav.v2-nav .nav-link.nav-gold {
    color: var(--accent-gold);
    font-weight: 600; /* Makes it slightly bolder to stand out */
}

/* Ensure the hover effect stays clean */
nav.v2-nav .nav-link.nav-gold:hover {
    color: var(--text-main); 
}

/* Utilities */
.light-border { border-color: #e5e7eb !important; }


/* ==========================================================================
   CUSTOM BUTTON STATES
   ========================================================================== */
/* 
 * .btn-warning-flip
 * Used primarily for the "Update Information" button on the Annual Profile Review alert.
 * This class provides a high-contrast color inversion on hover. 
 * The hover background (#212529) is specifically set to perfectly match 
 * Bootstrap's native '.btn-outline-dark' hover state so adjacent buttons look cohesive.
 */
.btn-warning-flip {
    background-color: #ffc107; /* Standard Bootstrap warning yellow */
    color: #212529;            /* Standard Bootstrap dark text */
    border: 1px solid #ffc107;
    transition: all 0.15s ease-in-out;
}

.btn-warning-flip:hover {
    background-color: #212529; /* Exact match to .btn-outline-dark hover */
    border-color: #212529;
    color: #ffc107;            /* Pops the text to yellow for contrast */
}