/* Resources Page Specific Styling */

/* Header Section */
.resource-header {
    background: var(--header-bg);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, var(--border-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--border-color) 0%, transparent 50%);
    opacity: 0.6;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.header-badge i {
    font-size: 1.2rem;
}

.header-highlight {
    font-size: 0.6em;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.resource-stats {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.2rem;
}

/* Floating animation for stats */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.stat-item {
    animation: float 3s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-header {
        padding: 6rem 0 4rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .resource-stats .row {
        gap: 1rem !important;
    }

    .stat-item {
        padding: 0.5rem 1rem;
    }
}

/* Category Styling */
.resource-category {
    margin-bottom: 4rem;
    position: relative;
}

.resource-category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.resource-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--header-bg);
    border-radius: 2px;
}

/* Card Styling */
.resource-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--header-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Button Styling */
.resource-card .btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.resource-card .btn:hover {
    background: var(--primary-color);
    color: var(--header-text);
}

/* Category Icons */
.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--header-bg);
    border-radius: 12px;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resource-header {
        padding: 4rem 0;
    }

    .resource-category h2 {
        font-size: 1.8rem;
    }

    .resource-card {
        padding: 2rem;
    }

    .resource-card h3 {
        font-size: 1.4rem;
    }

    .resource-icon {
        font-size: 2rem;
    }
}

/* Animation for cards on scroll */
.resource-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger card animations */
.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }

/* Resource page text */
.resource-category h2 {
    color: var(--text-color);
}

.resource-card {
    background: var(--card-bg);
}

.resource-card h3 {
    color: var(--text-color);
}

.resource-card p {
    color: var(--text-secondary);
}

/* Stats and info text */
.stat-item span {
    color: var(--text-color);
}

.header-content p {
    color: var(--header-text);
}

/* Resource stats */
.resource-stats {
    color: var(--text-color);
}