/**
 * Calculators Hub Page Styles
 *
 * Matching Get Involved and Resources hub visual design with frosted glass cards
 *
 * @package FFOA_Custom
 * @since 1.1.0
 */

/* ============================================================
   PAGE BACKGROUND
   ============================================================ */

.page-calculators-hub {
    background-color: #1a2340 !important;
    background-image: url('../images/Gemini_Generated_Image_m9ub24m9ub24m9ub.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

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

.calculators-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: rgba(34, 46, 81, 0.75);
    color: #ffffff;
}

.calculators-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.calculators-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.calculators-hero .hero-subtitle {
    font-size: 1.5rem;
    color: #C2B97F;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.calculators-hero .hero-description {
    font-size: 1.125rem;
    color: #f0f0f0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .calculators-hero .hero-title {
        font-size: 2.25rem;
    }

    .calculators-hero .hero-subtitle {
        font-size: 1.25rem;
    }

    .calculators-hero .hero-description {
        font-size: 1rem;
    }

    .calculators-hero {
        padding: 3rem 0 2rem;
    }
}

/* ============================================================
   CALCULATOR CARDS SECTION
   ============================================================ */

.calculator-cards-section {
    padding: 4rem 0;
    background: transparent !important;
}

.calculator-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   INDIVIDUAL CARDS - Frosted Glass Effect
   ============================================================ */

.calculator-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(34, 46, 81, 0.25);
    border-color: #C2B97F;
    background: rgba(255, 255, 255, 0.7);
}

/* Card-specific top border colors */
.calculator-card-budget {
    border-top: 4px solid #2196F3;
}

.calculator-card-debt {
    border-top: 4px solid #06A77D;
}

.calculator-card-savings {
    border-top: 4px solid #FF9800;
}

.calculator-card-loan {
    border-top: 4px solid #9C27B0;
}

/* ============================================================
   CARD CONTENT
   ============================================================ */

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #C2B97F;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.calculator-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ============================================================
   CARD HIGHLIGHTS
   ============================================================ */

.card-highlights {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 500px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    color: #06A77D;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.highlight-text {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.5;
}

/* ============================================================
   CARD BUTTON
   ============================================================ */

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #C2B97F;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(194, 185, 127, 0.3);
    margin-top: auto;
    min-width: 220px;
}

.card-button:hover {
    background: #a99b65;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(194, 185, 127, 0.4);
}

.button-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.card-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ============================================================
   NOTICE SECTION
   ============================================================ */

.calculators-notice {
    background: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculators-notice h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
}

.calculators-notice p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .calculator-cards {
        gap: 2rem;
        padding: 0 1rem;
    }

    .calculator-card {
        padding: 2.5rem 1.5rem;
    }

    .card-icon {
        width: 64px;
        height: 64px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .card-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }

    .highlight-text {
        font-size: 0.875rem;
    }

    .calculators-notice {
        margin: 0 1rem 3rem;
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .calculator-cards-section {
        padding: 3rem 0;
    }

    .calculator-card {
        padding: 2rem 1.25rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .card-title {
        font-size: 1.375rem;
    }
}
