/* ============================================
   RESOURCES PAGE STYLES - Matching Home.css
   ============================================ */

.resources-page {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* ===== HERO SECTION ===== */
.resources-hero {
    background: linear-gradient(135deg, #2d0a0a 0%, #4a0a0a 25%, #6b0a0a 50%, #4a0a0a 75%, #2d0a0a 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 15s ease infinite;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 2px, transparent 2px);
    background-size: 24px 24px;
    pointer-events: none;
}

.resources-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F57B2C, #AC1A2C, #14776D, #0B4F66, #F57B2C);
    animation: borderShine 4s ease infinite;
    background-size: 200% 100%;
}

@keyframes borderShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.resources-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.resources-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.orange-text {
    color: #F57B2C;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.resources-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATS SECTION ===== */
.resources-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #F3FAFA 0%, #E8F4F4 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.12);
    border-color: rgba(245, 123, 44, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 123, 44, 0.1), rgba(139, 0, 0, 0.08));
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #8B0000;
}

.stat-card h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B0000, #F57B2C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.85rem;
    color: #465256;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-card small {
    font-size: 0.7rem;
    color: #14776D;
}

/* ===== FILTER SECTION ===== */
.resources-filter {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 40px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #F57B2C;
    box-shadow: 0 0 0 3px rgba(245, 123, 44, 0.1);
}

.filter-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 40px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #F57B2C;
}

.reset-btn {
    padding: 0.7rem 1.2rem;
    background: #f0f0f0;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.reset-btn:hover {
    background: #e0e0e0;
}

/* ===== RESOURCES GRID ===== */
.resources-grid-section {
    padding: 3rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.08);
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.12);
    border-color: rgba(245, 123, 44, 0.2);
}

.resource-card-inner {
    padding: 1.5rem;
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 123, 44, 0.1), rgba(139, 0, 0, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.resource-icon i {
    font-size: 1.8rem;
    color: #8B0000;
}

.resource-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d0a0a;
    margin-bottom: 0.5rem;
}

.resource-info p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 1rem;
}

.resource-meta i {
    margin-right: 4px;
    color: #F57B2C;
}

.resource-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-download, .btn-save {
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-download {
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-save {
    background: #f0f0f0;
    color: #333;
}

.btn-save:hover {
    background: #e0e0e0;
}

.btn-save.saved {
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid rgba(139, 0, 0, 0.08);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 123, 44, 0.1), rgba(139, 0, 0, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #8B0000;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: #2d0a0a;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-clear {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

/* ===== HOW TO SECTION ===== */
.howto-section {
    padding: 60px 0;
    background: white;
    margin-top: 2rem;
    border-top: 1px solid rgba(139, 0, 0, 0.08);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d0a0a;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F57B2C, #8B0000);
    border-radius: 2px;
}

.section-heading p {
    color: #465256;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.howto-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.howto-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
}

.howto-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.howto-card i {
    font-size: 2rem;
    color: #F57B2C;
    margin-bottom: 1rem;
    display: block;
}

.howto-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d0a0a;
}

.howto-card p {
    font-size: 0.8rem;
    color: #666;
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.notification-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .howto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: flex-start;
    }
    
    .resources-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .resources-hero {
        padding: 50px 0;
    }
    
    .resources-hero-title {
        font-size: 1.6rem;
    }
    
    .resources-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .resources-stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .howto-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-actions {
        flex-direction: column;
    }
    
    .btn-download, .btn-save {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .resource-card-inner {
        padding: 1rem;
    }
    
    .resource-meta {
        gap: 0.5rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}