/* Learning Resources Page Styles */

/* Base styles and new color theme */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 500;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.resource-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(30px);
    animation: fadeIn 0.5s ease-out forwards;
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

/* Updated button styles to match the new theme */
.btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.4);
}

/* Updated hero title for better contrast */
.hero-title {
    color: white;
}

/* Utility class for text shadow to improve readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Animation styles */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fade-in-initial {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.search-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Updated tag styles for the new theme */
.tag {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1), rgba(56, 239, 125, 0.1));
    color: #11998e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(17, 153, 142, 0.2);
}

.category-filter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .logo-title {
        font-size: 1.75rem;
    }

    .logo-subtitle {
        font-size: 0.875rem;
    }

    /* Resource cards mobile optimization */
    .resource-card {
        margin-bottom: 1.25rem;
    }

    .resource-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    /* Search bar mobile styling */
    .search-bar {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 1rem;
    }

    /* Category filters mobile layout */
    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin: 0.25rem;
        border-radius: 1.5rem;
    }

    .category-filter:hover,
    .category-filter.active {
        transform: translateY(-1px);
    }

    /* Button mobile styling */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 1rem;
    }

    /* Tag mobile styling */
    .tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.675rem;
        border-radius: 1rem;
    }

    /* Floating background elements mobile adjustment */
    .floating,
    .floating-delayed {
        animation-duration: 8s;
    }

    /* Grid layout mobile */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .search-bar {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .category-filter {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    .resources-grid {
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .resource-card {
        padding: 1.5rem;
    }

    /* Floating elements smaller on mobile */
    .floating,
    .floating-delayed {
        width: 80%;
        height: 80%;
        opacity: 0.05;
    }
}
