/* =============================================
   CATALOGUE MODAL - PRO PREMIUM DESIGN
   Orange gradient theme with compact layout
   ============================================= */

.catalogue-modal {
    max-width: 950px !important;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Header Styling */
.catalogue-modal h2 {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.375rem;
    letter-spacing: -0.5px;
}

.catalogue-modal .modal-subtitle {
    font-size: 0.9375rem;
    color: rgba(156, 163, 175, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Catalogues Grid - Compact */
.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 1.5rem;
    padding: 0.25rem;
}

/* Catalogue Card - Compact Premium Glass Effect */
.catalogue-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(17, 24, 39, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Animated gradient border on hover - Orange */
.catalogue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.catalogue-card:hover::before {
    opacity: 1;
}

.catalogue-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 18px 35px -10px rgba(251, 146, 60, 0.3),
        0 0 0 1px rgba(251, 146, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.6));
}

/* Icon Container with Orange Gradient - Smaller */
.catalogue-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow:
        0 8px 25px -5px rgba(251, 146, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.catalogue-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(18px);
    transition: opacity 0.4s ease;
}

.catalogue-card:hover .catalogue-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow:
        0 12px 35px -8px rgba(251, 146, 60, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.catalogue-card:hover .catalogue-icon::after {
    opacity: 1;
}

/* Card Title - Smaller */
.catalogue-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f9fafb;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.catalogue-card:hover h3 {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

/* Premium Download Button - Compact Orange */
.download-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 4px 15px -3px rgba(251, 146, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.download-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 ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 22px -5px rgba(251, 146, 60, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px -2px rgba(251, 146, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.download-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: scale(1.15);
}

/* Scrollbar Styling - Orange Theme */
.catalogue-modal::-webkit-scrollbar {
    width: 7px;
}

.catalogue-modal::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 10px;
}

.catalogue-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fb923c, #f97316);
    border-radius: 10px;
}

.catalogue-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalogue-modal {
        max-width: 95%;
        border-radius: 18px;
    }

    .catalogue-modal h2 {
        font-size: 1.625rem;
    }

    .catalogues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .catalogue-card {
        padding: 20px 14px;
    }

    .catalogue-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .catalogue-card h3 {
        font-size: 0.9375rem;
        margin-bottom: 14px;
    }

    .download-btn {
        padding: 9px 14px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .catalogues-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .catalogue-card {
        padding: 24px 18px;
        max-width: 300px;
        margin: 0 auto;
    }

    .catalogue-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

/* Stagger animation on load */
@keyframes catalogueFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalogue-card {
    animation: catalogueFadeInUp 0.5s ease-out backwards;
}

.catalogue-card:nth-child(1) {
    animation-delay: 0.05s;
}

.catalogue-card:nth-child(2) {
    animation-delay: 0.1s;
}

.catalogue-card:nth-child(3) {
    animation-delay: 0.15s;
}

.catalogue-card:nth-child(4) {
    animation-delay: 0.2s;
}

.catalogue-card:nth-child(5) {
    animation-delay: 0.25s;
}

.catalogue-card:nth-child(6) {
    animation-delay: 0.3s;
}

.catalogue-card:nth-child(7) {
    animation-delay: 0.35s;
}