/* =========================================
   ELLA RISES - LIGHT & BRIGHT THEME
   Palette: Blush, Sage, Charcoal, White
   Aesthetic: Airy, Welcoming, Authentic
   ========================================= */

:root {
    /* BRAND COLORS (From Brand Guide) */
    --er-primary: #F9AFB1;       /* The "Ella Pink" (Soft Blush) */
    --er-primary-dark: #E58E91;  /* Slightly darker pink for hovers */
    --er-sage: #9AB59D;          /* Sage Green (Secondary Accent) */
    --er-charcoal: #3A3F3B;      /* Brand Dark Grey (Not Black) */
    --er-text: #5A5A5A;          /* Softer Grey for body text */
    --er-bg: #FFFAF4;            /* Warm White / Cream Background */
    --er-white: #FFFFFF;
    
    /* UI  */
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 40px rgba(249, 175, 177, 0.15); /* Pink-tinted glow */
    --shadow-hover: 0 15px 35px rgba(58, 63, 59, 0.1);    /* Charcoal shadow */
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Montserrat', sans-serif;
}

/* --- base stylz --- */

/* Set html height */
html {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff; 
    color: var(--er-text);
    line-height: 1.7;
    
    /* sticky footer setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Forces body with min height of screen  */
    margin: 0;
}

/* force footer to bottom  */
footer {
    margin-top: auto !important;
    width: 100%;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--er-charcoal);
    font-weight: 700;
}

/* --- 2. Navigation --- */
.navbar {
    background-color: var(--er-white) !important;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Very subtle shadow */
}

/* Links  Charcoal to  turning Pink on hover */
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--er-charcoal) !important; 
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--er-primary-dark) !important;
    background-color: rgba(249, 175, 177, 0.1); /* Subtle pink backing */
    border-radius: 20px;
}

/* User Greeting */
.navbar-text {
    color: var(--er-charcoal) !important;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- 3. Buttons --- */
.btn {
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

/* Primary = Charcoal */
.btn-primary {
    background-color: var(--er-charcoal);
    color: white;
    box-shadow: 0 4px 10px rgba(58, 63, 59, 0.2);
}

.btn-primary:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 63, 59, 0.3);
}

/* Donate Button = The Brand Pink */
.btn-warning {
    background-color: var(--er-primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(249, 175, 177, 0.4);
}

.btn-warning:hover {
    background-color: var(--er-primary-dark);
    color: white !important;
    transform: translateY(-2px);
}

/* Outline Buttons */
.btn-outline-light {
    border: 2px solid var(--er-charcoal);
    color: var(--er-charcoal);
}

.btn-outline-light:hover {
    background-color: var(--er-charcoal);
    color: white;
}

/* --- 4. Cards --- */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02); /* Tiny border  */
}

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--er-bg);
    padding: 1.5rem;
}

/* Overrides for specific headers */
.bg-primary { background-color: var(--er-sage) !important; } /* Sage Green Headers */
.text-primary { color: var(--er-charcoal) !important; }

/* --- 5. Tables --- */

/* Vertically center tables */
.table td, .table th {
    vertical-align: middle;
}

/* header styles */
.table thead th {
    background-color: var(--er-sage) !important; 
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: none;
    padding: 1rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--er-bg); 
}

/* --- 6. Forms --- */
.form-control, .form-select {
    background-color: var(--er-bg);
    border: 1px solid #eee;
    padding: 0.8rem;
}

.form-control:focus {
    background-color: white;
    border-color: var(--er-primary);
    box-shadow: 0 0 0 4px rgba(249, 175, 177, 0.2); /* Pink Glow */
}

/* --- 7. Utilities --- */
/* Selection Color */
::selection {
    background: var(--er-primary);
    color: white;
}

/* Prevent scroll */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   FIXES: HERO VISIBILITY & ANIMATION
   ========================================= */

/* 1. Force hero text white */
/* The main title needs to be white to show up against the dark photo overlay */
header h1, header p.lead {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6); /* Adds a shadow to pop */
}

/* 2. Fix "View Events" Button */
/* We restore the 'outline light' button to actually be White for the dark header */
.btn-outline-light {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.btn-outline-light:hover {
    background-color: #ffffff !important;
    color: var(--er-charcoal) !important; /* Turns dark when hover */
}

/* 3.  Logo Spin Animation */
.navbar-brand img {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy spin */
    transform-origin: center center;
    padding: 5px; /* Gives it room to spin without clipping */
}

.navbar-brand:hover img {
    transform: rotate(360deg);
}

/* Fix: Header Buttons */
.btn-outline-dark {
    color: var(--er-charcoal);
    border: 1px solid var(--er-charcoal);
}

.btn-outline-dark:hover {
    background-color: var(--er-charcoal);
    color: white;
}