/* Frontend Styles for Animated Sections Manager */

.asm-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Image */
.asm-section-image {
    margin-bottom: 40px;
    text-align: center;
}

.asm-section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Header */
.asm-section-header {
    margin-bottom: 40px;
}

.asm-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.asm-subheading {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Materials List Layout */
.asm-materials-list {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.asm-materials-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px 60px 15px 20px;
    background: #e8e8e8;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.asm-material-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.asm-material-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.asm-material-number {
    width: 28px;
    height: 28px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.asm-material-col {
    font-size: 15px;
    line-height: 1.6;
}

.asm-material-name {
    font-weight: 600;
    color: #1a1a1a;
}

.asm-material-description {
    color: #555;
}

/* Grid Layout for other types */
.asm-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.asm-item-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.asm-item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.asm-item-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.asm-item-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Animation States */
.asm-animate-item {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.asm-animate-item.asm-visible {
    opacity: 1;
}

/* Fade Up Animation */
.asm-animation-fade-up .asm-animate-item {
    transform: translateY(40px);
}

.asm-animation-fade-up .asm-animate-item.asm-visible {
    transform: translateY(0);
}

/* Fade Down Animation */
.asm-animation-fade-down .asm-animate-item {
    transform: translateY(-40px);
}

.asm-animation-fade-down .asm-animate-item.asm-visible {
    transform: translateY(0);
}

/* Slide Left Animation */
.asm-animation-slide-left .asm-animate-item {
    transform: translateX(60px);
}

.asm-animation-slide-left .asm-animate-item.asm-visible {
    transform: translateX(0);
}

/* Slide Right Animation */
.asm-animation-slide-right .asm-animate-item {
    transform: translateX(-60px);
}

.asm-animation-slide-right .asm-animate-item.asm-visible {
    transform: translateX(0);
}

/* Zoom In Animation */
.asm-animation-zoom-in .asm-animate-item {
    transform: scale(0.85);
}

.asm-animation-zoom-in .asm-animate-item.asm-visible {
    transform: scale(1);
}

/* Staggered Animation Delays */
.asm-animate-item:nth-child(1) { transition-delay: 0.05s; }
.asm-animate-item:nth-child(2) { transition-delay: 0.1s; }
.asm-animate-item:nth-child(3) { transition-delay: 0.15s; }
.asm-animate-item:nth-child(4) { transition-delay: 0.2s; }
.asm-animate-item:nth-child(5) { transition-delay: 0.25s; }
.asm-animate-item:nth-child(6) { transition-delay: 0.3s; }
.asm-animate-item:nth-child(7) { transition-delay: 0.35s; }
.asm-animate-item:nth-child(8) { transition-delay: 0.4s; }
.asm-animate-item:nth-child(9) { transition-delay: 0.45s; }
.asm-animate-item:nth-child(10) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .asm-section {
        padding: 40px 15px;
    }
    
    .asm-heading {
        font-size: 26px;
    }
    
    .asm-subheading {
        font-size: 14px;
    }
    
    .asm-materials-header {
        display: none;
    }
    
    .asm-material-row {
        grid-template-columns: 32px 1fr;
        gap: 12px;
    }
    
    .asm-material-col {
        grid-column: 2;
    }
    
    .asm-material-name {
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .asm-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .asm-materials-list {
        padding: 12px;
    }
    
    .asm-material-row {
        padding: 15px;
    }
    
    .asm-item-card {
        padding: 20px;
    }
}
