/**
 * Ezy Loan Manager - Frontend CSS
 * Version: 3.2.1
 * Blue/Yellow Payday Loan Theme
 */

/* ===================================
   VARIABLES & RESET
   =================================== */

:root {
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --yellow: #fbbf24;
    --dark-yellow: #f59e0b;
    --bg-light: #f0f9ff;
    --gray: #6b7280;
    --gray-dark: #374151;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ezy-payday-home {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    padding-bottom: 70px; /* Space for bottom nav on mobile */
}

.ezy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */

.ezy-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.ezy-header.scrolled {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ezy-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.ezy-logo h1 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.ezy-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .ezy-logo-img {
        height: 40px;
    }
}

.ezy-nav {
    display: flex;
    gap: 30px;
}

.ezy-nav a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ezy-nav a:hover {
    color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.ezy-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.ezy-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s;
}

.ezy-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.ezy-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ezy-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.ezy-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.ezy-mobile-menu.active {
    display: flex;
}

.ezy-mobile-menu a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.ezy-mobile-menu a:hover {
    background: var(--bg-light);
}

/* ===================================
   HERO SECTION
   =================================== */

.ezy-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.ezy-hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ezy-hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.ezy-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ezy-hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.ezy-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.ezy-feature-icon {
    font-size: 24px;
}

/* ===================================
   BUTTONS
   =================================== */

.ezy-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.ezy-btn-primary {
    background: var(--yellow);
    color: var(--dark-blue);
}

.ezy-btn-primary:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ezy-btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
}

.ezy-btn-secondary:hover {
    background: var(--gray-light);
}

.ezy-btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.ezy-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 60px 0;
}

.ezy-section-title {
    font-size: 36px;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.ezy-section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 18px;
}

/* ===================================
   CALCULATOR
   =================================== */

.ezy-calculator-section {
    background: var(--bg-light);
}

.ezy-calculator {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ezy-calculator-input label {
    display: block;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.ezy-slider-container {
    margin-bottom: 30px;
}

.ezy-slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-light);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.ezy-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    border: 3px solid var(--primary-blue);
}

.ezy-slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    border: 3px solid var(--primary-blue);
}

.ezy-amount-display {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.ezy-calculator-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ezy-calc-result {
    padding: 20px;
    background: var(--gray-light);
    border-radius: 8px;
    text-align: center;
}

.ezy-calc-highlight {
    background: var(--primary-blue);
    color: var(--white);
    grid-column: 1 / -1;
    padding: 30px 20px;
}

.ezy-calc-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.ezy-calc-highlight .ezy-calc-label {
    color: var(--white);
    opacity: 0.9;
}

.ezy-calc-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--gray-dark);
}

.ezy-calc-highlight .ezy-calc-value {
    color: var(--yellow);
    font-size: 32px;
}

/* ===================================
   LOAN USES
   =================================== */

.ezy-uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ezy-use-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.ezy-use-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.ezy-use-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.ezy-use-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 18px;
}

.ezy-use-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ===================================
   HOW IT WORKS
   =================================== */

.ezy-how-it-works {
    background: var(--gray-light);
}

.ezy-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.ezy-step {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

.ezy-step-number {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.ezy-step h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 20px;
}

.ezy-step p {
    color: var(--gray);
    font-size: 14px;
}

/* ===================================
   REQUIREMENTS
   =================================== */

.ezy-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.ezy-requirement {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

.ezy-req-icon {
    width: 30px;
    height: 30px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* ===================================
   CTA SECTION
   =================================== */

.ezy-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: center;
}

.ezy-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--white);
}

.ezy-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===================================
   FOOTER
   =================================== */

.ezy-footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.ezy-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.ezy-footer-col h3,
.ezy-footer-col h4 {
    margin-bottom: 15px;
    color: var(--yellow);
}

.ezy-footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.ezy-footer-col p,
.ezy-footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.ezy-footer-col a:hover {
    color: var(--yellow);
}

.ezy-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.ezy-powered {
    margin-top: 10px;
}

.ezy-powered strong {
    color: var(--yellow);
}

/* ===================================
   BOTTOM NAVIGATION (MOBILE)
   =================================== */

.ezy-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
    justify-content: space-around;
    padding: 10px 0 5px;
    z-index: 1000;
}

.ezy-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    flex: 1;
    padding: 5px;
    transition: color 0.2s;
}

.ezy-bottom-nav-item.active,
.ezy-bottom-nav-item:hover {
    color: var(--primary-blue);
}

.ezy-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.ezy-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 768px) {
    /* Header */
    .desktop-nav {
        display: none;
    }
    
    .ezy-mobile-menu-toggle {
        display: flex;
    }
    
    .ezy-logo h1 {
        font-size: 20px;
    }
    
    /* Hero */
    .ezy-hero {
        padding: 40px 0;
    }
    
    .ezy-hero-title {
        font-size: 28px;
    }
    
    .ezy-hero-subtitle {
        font-size: 16px;
    }
    
    .ezy-hero-buttons {
        flex-direction: column;
    }
    
    .ezy-btn-large {
        width: 100%;
    }
    
    .ezy-hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .ezy-section-title {
        font-size: 28px;
    }
    
    .ezy-section-subtitle {
        font-size: 16px;
    }
    
    /* Calculator */
    .ezy-calculator {
        padding: 25px;
    }
    
    .ezy-amount-display {
        font-size: 36px;
    }
    
    .ezy-calculator-results {
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .ezy-steps {
        gap: 20px;
    }
    
    .ezy-step {
        max-width: 100%;
    }
    
    /* Uses Grid */
    .ezy-uses-grid {
        grid-template-columns: 1fr;
    }
    
    /* Requirements */
    .ezy-requirements-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .ezy-cta h2 {
        font-size: 24px;
    }
    
    .ezy-cta p {
        font-size: 16px;
    }
    
    /* Footer */
    .ezy-footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Add padding to footer to account for bottom nav */
    .ezy-footer {
        padding-bottom: 80px;
    }
    
    /* Bottom Nav - Show on Mobile */
    .ezy-bottom-nav {
        display: flex;
    }
    
    body.ezy-payday-home {
        padding-bottom: 70px;
    }
}

@media (min-width: 769px) {
    .ezy-bottom-nav {
        display: none;
    }
    
    body.ezy-payday-home {
        padding-bottom: 0;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}
