/* ---------- CATALOG PAGE STYLES - FULLY RESPONSIVE ---------- */

/* Hero Section */
.catalog-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    width: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.03) 50px,
            transparent 60px,
            #021334 30%,
            #051024 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(3, 185, 200, 0.12), transparent 70%);
    z-index: 1;
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.catalog-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.catalog-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Catalog Section */
.catalog-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fc 0%, #ffffff 100%);
}

.catalog-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Download All Button */
.download-all-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.download-all-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(3, 185, 200, 0.35);
    letter-spacing: 0.5px;
}

.download-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(3, 185, 200, 0.45);
    gap: 1.2rem;
}

.download-all-btn i {
    font-size: 1.3rem;
}

.file-count {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
}

/* Catalog Grid - 2 Columns on Desktop */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Catalog Card */
.catalog-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.35s ease;
    border: 1px solid #e8ecf2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.catalog-icon {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.12), rgba(255, 68, 68, 0.06));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.catalog-card:hover .catalog-icon {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
    transform: scale(1.02);
}

.catalog-icon i {
    font-size: 2.8rem;
    color: #ff4444;
}

.catalog-info {
    flex: 1;
}

.catalog-info h3 {
    font-family: var(--font-nav);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

.catalog-filename {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.6rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    display: none;
}

.catalog-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.75rem;
    color: #999;
}

.catalog-meta i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.download-single-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-accent), #65a30d);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.download-single-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(132, 204, 22, 0.35);
    gap: 0.9rem;
}

.download-single-btn i {
    font-size: 0.9rem;
}

/* Catalog Note */
.catalog-note {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.catalog-note i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.catalog-note p {
    font-size: 0.85rem;
    color: #666;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet Landscape (1024px - 1366px) */
@media (max-width: 1200px) {
    .catalog-grid {
        gap: 1.5rem;
    }

    .catalog-card {
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .catalog-icon {
        width: 65px;
        height: 65px;
    }

    .catalog-icon i {
        font-size: 2.4rem;
    }

    .catalog-info h3 {
        font-size: 1.05rem;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 900px) {
    .catalog-hero {
        height: 45vh;
        min-height: 350px;
    }

    .catalog-hero-content h1 {
        font-size: 2.8rem;
    }

    .catalog-hero-content p {
        font-size: 1rem;
    }

    .catalog-section {
        padding: 3.5rem 1.5rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-card {
        max-width: 100%;
    }

    .download-all-btn {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .catalog-hero {
        height: 40vh;
        min-height: 320px;
    }

    .catalog-hero-content h1 {
        font-size: 2.2rem;
    }

    .catalog-hero-content p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .catalog-card {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .catalog-icon {
        width: 70px;
        height: 70px;
    }

    .catalog-icon i {
        font-size: 2.5rem;
    }

    .catalog-info {
        width: 100%;
        text-align: center;
    }

    .catalog-meta {
        justify-content: center;
    }

    .download-single-btn {
        width: auto;
        min-width: 160px;
        justify-content: center;
        padding: 0.7rem 1.8rem;
        white-space: nowrap;
    }

    .download-all-wrapper {
        margin-bottom: 2.5rem;
    }

    .download-all-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .file-count {
        font-size: 0.8rem;
    }
}

/* Mobile Portrait (320px - 576px) */
@media (max-width: 576px) {
    .catalog-hero {
        height: 38vh;
        min-height: 280px;
    }

    .catalog-hero-content h1 {
        font-size: 1.8rem;
    }

    .catalog-hero-content p {
        font-size: 0.85rem;
    }

    .catalog-section {
        padding: 2.5rem 1rem;
    }

    .catalog-card {
        padding: 1.2rem;
        gap: 0.8rem;
    }

    .catalog-icon {
        width: 55px;
        height: 55px;
    }

    .catalog-icon i {
        font-size: 2rem;
    }

    .catalog-info h3 {
        font-size: 0.95rem;
    }

    .catalog-filename {
        font-size: 0.65rem;
    }

    .catalog-meta {
        gap: 0.8rem;
        font-size: 0.65rem;
    }

    .download-single-btn {
        min-width: 140px;
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .download-all-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .download-all-btn i {
        font-size: 1rem;
    }

    .file-count {
        font-size: 0.7rem;
    }

    .catalog-note p {
        font-size: 0.7rem;
    }
}

/* Small Mobile (under 380px) */
@media (max-width: 380px) {
    .catalog-hero-content h1 {
        font-size: 1.5rem;
    }

    .catalog-hero-content p {
        font-size: 0.75rem;
    }

    .download-single-btn {
        min-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .catalog-info h3 {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Loading State */
.download-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

/* Toast Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}