/* Custom Styles for WoolFeltAcad */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Module card hover effects */
.module-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, #d97706, #ea580c, #e11d48);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #d97706, #e11d48);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fef3c7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d97706, #e11d48);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b45309, #be123c);
}

/* Image loading placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fecdd3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .module-card {
        margin-bottom: 1.5rem;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #fef3c7;
    border-top: 3px solid #d97706;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #d97706, #ea580c, #e11d48);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b45309, #c2410c, #be123c);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
}

/* Content sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Module image styling */
.module-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Detail page image */
.detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Tag styling */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #92400e;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

