/* 
 * Luis Support Website - CSS Styling
 * 
 * This website helps Luis Hernandez Jr., a 47-year-old hardcore New York Mets fan
 * with schizophrenia who is facing eviction. Luis bleeds orange and blue!
 * 
 * Color Scheme: New York Mets colors (Orange #FF5910, Blue #002D72)
 * Combined with accessibility and urgency colors for his crisis situation
 */

:root {
    /* New York Mets Official Colors - For Luis! */
    --mets-blue: #002D72;        /* Primary Mets blue */
    --mets-orange: #FF5910;      /* Primary Mets orange */
    --mets-light-blue: #0080C7;  /* Secondary Mets blue */
    --mets-gray: #C4CED4;        /* Mets gray accent */
    
    /* Website Theme Colors */
    --primary-color: var(--mets-blue);     /* Main blue for buttons, headers */
    --secondary-color: #001a4d;            /* Darker blue for hover states */
    --accent-color: var(--mets-orange);    /* Orange for urgent elements */
    --light-accent: #ff7a47;               /* Lighter orange for backgrounds */
    
    /* Status Colors */
    --danger-color: #dc3545;     /* Red for critical situations */
    --warning-color: #ffc107;    /* Yellow for warnings */
    --success-color: #198754;    /* Green for success */
    --info-color: var(--mets-light-blue); /* Mets light blue for info */
}

/* 
 * Body styling for Luis's website
 * Clean, readable typography that respects his dignity while showing urgency
 */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #fafafa;
}

/* Add subtle Mets-inspired background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 45, 114, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 89, 16, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Hero Section - Luis's Story with Mets Pride */
.hero-section {
    /* Mets-inspired gradient background */
    background: linear-gradient(135deg, var(--mets-blue), var(--mets-light-blue));
    position: relative;
    overflow: hidden;
}

/* Add subtle Mets pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 89, 16, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 89, 16, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Navigation - Mets colors for Luis's website branding */
.navbar-brand {
    font-weight: 700;
    color: var(--mets-blue) !important;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--mets-orange) !important;
    transition: color 0.3s ease;
}

/* Add Mets-inspired accent to active nav items */
.navbar-nav .nav-link.active {
    color: var(--mets-orange) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--mets-orange);
}

.navbar-nav .nav-link:hover {
    color: var(--mets-blue) !important;
    transition: color 0.3s ease;
}

/* Button Styling - Mets Colors for Luis */
.btn-primary {
    background-color: var(--mets-blue);
    border-color: var(--mets-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 45, 114, 0.3);
}

/* Urgent donation button - Mets orange for maximum impact */
.btn-warning {
    background-color: var(--mets-orange) !important;
    border-color: var(--mets-orange) !important;
    color: white !important;
    font-weight: bold;
    animation: mets-pulse 2s infinite;
}

.btn-warning:hover {
    background-color: var(--light-accent) !important;
    border-color: var(--light-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 89, 16, 0.4);
}

/* Story and content styling */
.story-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.story-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.story-card:hover {
    transform: translateY(-2px);
}

/* Urgent stats styling */
.urgent-stats .stat-box {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem;
}

/* Crisis items - Emphasize Luis's urgent situation with Mets colors */
.crisis-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--mets-orange);
    transition: all 0.3s ease;
}

.crisis-item:hover {
    background: rgba(255, 89, 16, 0.1);
    transform: translateX(5px);
}

.crisis-need {
    transition: transform 0.2s ease;
}

.crisis-need:hover {
    transform: translateY(-3px);
}

/* Donation form styling */
.donation-amount {
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-amount:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Donation amount buttons - Mets blue when selected */
.donation-amount.active {
    background-color: var(--mets-blue) !important;
    color: white !important;
    border-color: var(--mets-blue) !important;
    box-shadow: 0 0 15px rgba(0, 45, 114, 0.4);
}

/* Special styling for the $1600 button (Luis's rent) */
.donation-amount[data-amount="1600"] {
    border: 2px solid var(--mets-orange);
    background: linear-gradient(45deg, var(--mets-blue), var(--mets-light-blue));
    color: white;
    font-weight: bold;
}

.donation-amount[data-amount="1600"]:hover {
    animation: mets-glow 1.5s ease-in-out infinite;
}

.payment-method {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method:hover {
    transform: translateY(-2px);
}

/* Payment method selection - Mets orange for active state */
.payment-method.active {
    background-color: var(--mets-orange) !important;
    color: white !important;
    border-color: var(--mets-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 89, 16, 0.3);
}

/* Impact and help categories - Show how donations help Luis */
.impact-item {
    border-left: 4px solid var(--mets-orange);
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.impact-item:hover {
    border-left-width: 6px;
    padding-left: 1.2rem;
    background: rgba(255, 89, 16, 0.05);
}

/* Special styling for the $1600 impact (Luis's rent) */
.impact-item:last-child {
    border-left-color: var(--mets-blue);
    background: rgba(0, 45, 114, 0.05);
    font-weight: bold;
}

.help-category {
    border-left: 3px solid #e9ecef;
    padding-left: 1rem;
}

/* Timeline styling - Luis's story with Mets theme */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--mets-blue), var(--mets-orange));
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 3px solid white;
    position: relative;
    z-index: 2;
}

/* Different colors for different parts of Luis's story */
.timeline-marker.bg-primary {
    background: var(--mets-blue) !important;
}

.timeline-marker.bg-danger {
    background: var(--danger-color) !important;
}

.timeline-marker.bg-warning {
    background: var(--mets-orange) !important;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 10px;
}

/* Form styling - Mets colors for focus states */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--mets-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 114, 0.25);
}

/* Special focus state for donation amount input */
#custom-amount:focus {
    border-color: var(--mets-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 89, 16, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .urgent-stats .stat-box {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    .crisis-item {
        padding: 1rem;
    }
    
    .story-card {
        margin-bottom: 1rem;
    }
}

/* Mets-inspired animations for Luis's urgent needs */
@keyframes mets-pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 89, 16, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 89, 16, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 89, 16, 0);
    }
}

/* Mets colors for crisis elements */
@keyframes mets-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 45, 114, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 89, 16, 0.8), 0 0 30px rgba(0, 45, 114, 0.5);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success states */
.success-message {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}