/* 
==========================================
RESOURCES PAGE STYLES - AffordableInsurance
==========================================
*/

/* Hero Section */
.resources-hero {
    background: linear-gradient(135deg, #0c1a0c 0%, #1a2e1a 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(140, 182, 49, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(140, 182, 49, 0.15) 0%, transparent 70%);
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -100px;
    background: radial-gradient(circle, rgba(95, 176, 41, 0.1) 0%, transparent 70%);
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 20%;
    background: rgba(140, 182, 49, 0.08);
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 25%;
    background: rgba(95, 176, 41, 0.08);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.text-brand-lighter {
    color: #a4cf57 !important;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Hero Elements */
.trust-badge {
    backdrop-filter: blur(10px);
}

.hero-search .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-search .form-control {
    background: white;
    padding: 20px;
    font-size: 1rem;
}

.hero-search .btn {
    padding: 20px 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Featured Resource */
.hero-featured-resource {
    position: relative;
}

.resource-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf8 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.resource-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.resource-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.resource-description {
    color: #6c757d;
    margin-bottom: 20px;
}

.resource-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-item i {
    color: var(--primary);
}

/* Quick Tools */
.quick-tools {
    position: relative;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #e3f2d9;
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(140, 182, 49, 0.15);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(140, 182, 49, 0.1), rgba(95, 176, 41, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tool-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-outline-brand {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Resources Grid */
.resources-grid {
    background: #f8fdf8;
}

.resource-filter .form-select {
    width: auto;
    min-width: 200px;
    border: 2px solid #e3f2d9;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 500;
}

.resource-filter .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(140, 182, 49, 0.25);
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #e3f2d9;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.resource-card.guide {
    border-top: 4px solid #4d96ff;
}

.resource-card.checklist {
    border-top: 4px solid #ff6b6b;
}

.resource-card.calculator {
    border-top: 4px solid #5fb029;
}

.resource-card.faq {
    border-top: 4px solid #ff9f43;
}

.resource-card.comparison {
    border-top: 4px solid #9b51e0;
}

.resource-card.video {
    border-top: 4px solid #2d9cdb;
}

.resource-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}

.resource-footer {
    margin-top: 20px;
}

/* Calculator Section */
.calculator-section {
    position: relative;
}

.calculator-container {
    border: 2px solid #e3f2d9;
    overflow: hidden;
}

.calculator-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.calculator-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-select, .form-control {
    border: 2px solid #e3f2d9;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(140, 182, 49, 0.25);
}

.calculator-result {
    background: rgba(140, 182, 49, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 2px solid var(--primary);
}

.result-header {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
}

.result-breakdown {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e3f2d9;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e3f2d9;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item .amount {
    font-weight: 600;
    color: var(--primary);
}

.calculator-footer {
    padding: 20px;
    background: #f8fdf8;
    border-top: 2px solid #e3f2d9;
}

/* Download Center */
.download-center {
    background: white;
}

.download-card {
    background: white;
    border: 2px solid #e3f2d9;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(140, 182, 49, 0.15);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: rgba(140, 182, 49, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.download-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* CTA Section */
.resources-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Section Elements (reuse from services.css) */
.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Indicator (reuse) */
.scroll-indicator {
    z-index: 3;
}

.scroll-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
}

.scroll-indicator:hover .scroll-icon {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .resources-hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero-featured-resource {
        margin-top: 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .resource-filter {
        margin-top: 20px;
        width: 100%;
    }
    
    .resource-filter .form-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .resources-hero {
        padding: 60px 0;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .resource-card, .tool-card {
        padding: 20px;
    }
    
    .calculator-body {
        padding: 20px;
    }
    
    .result-amount {
        font-size: 2rem;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-search .form-control {
        padding: 15px;
    }
    
    .hero-search .btn {
        padding: 15px 20px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 20px);
    }
}