/* ========================================
   CATALOGS STYLES - RTL (Persian & Arabic)
   ======================================== */

/* ===== CATALOGS HERO ===== */
.catalogs-hero {
    height: 30vh;
    min-height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalogs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.1) 0%, transparent 60%);
    animation: heroGlowRTL 20s ease-in-out infinite alternate;
}

@keyframes heroGlowRTL {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-10%, -10%) rotate(5deg);
    }
}

.catalogs-hero-content {
    max-width: 700px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.catalogs-hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalogs-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
}

/* ===== CATALOGS SECTION ===== */
.catalogs-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
    min-height: 400px;
}

.catalogs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CATALOGS GRID ===== */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* ===== CATALOG CARD ===== */
.catalog-card {
    background: #ffffff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(240, 192, 64, 0.3);
}

.catalog-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #e9ecef;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.catalog-card:hover .catalog-image img {
    transform: scale(1.05);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.catalog-card:hover .catalog-overlay {
    opacity: 1;
}

.catalog-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0c040;
    color: #1a1a2e;
    padding: 0.9rem 2rem;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.catalog-card:hover .catalog-download-btn {
    transform: scale(1);
}

.catalog-download-btn:hover {
    background: #e6b030;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.4);
    color: #1a1a2e;
}

.catalog-download-btn i {
    font-size: 1.1rem;
}

.catalog-content {
    padding: 1.5rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-description p {
    margin: 0;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
    padding: 0.7rem 1.6rem;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.catalog-btn:hover {
    background: #f0c040;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.25);
}

.catalog-btn i {
    font-size: 1rem;
}

/* ===== NO CATALOGS ===== */
.no-catalogs {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-catalogs i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-catalogs h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #343a40;
    font-weight: 300;
}

.no-catalogs p {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    text-align: center;
    padding: 2rem 1rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.language-switcher span {
    font-weight: 500;
    color: #343a40;
    margin-left: 0.75rem;
    font-size: 0.95rem;
}

.language-switcher a {
    margin: 0 0.3rem;
    padding: 0.45rem 1.2rem;
    text-decoration: none;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 0px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 500;
    background: transparent;
}

.language-switcher a.active,
.language-switcher a:hover {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .catalogs-hero {
        height: 25vh;
        min-height: 160px;
    }

    .catalogs-hero-title {
        font-size: 2rem;
    }

    .catalogs-hero-subtitle {
        font-size: 0.95rem;
    }

    .catalogs-section {
        padding: 2.5rem 1rem;
    }

    .catalogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-image {
        height: 200px;
    }

    .catalog-content {
        padding: 1.2rem 1.4rem 1.6rem;
    }

    .catalog-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.8rem;
        align-self: stretch;
        justify-content: center;
    }

    .catalog-download-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .language-switcher {
        padding: 1.5rem 0.5rem;
    }

    .language-switcher a {
        margin: 0.2rem;
        padding: 0.35rem 0.8rem;
        font-size: 0.78rem;
    }

    .language-switcher span {
        display: block;
        margin-bottom: 0.5rem;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .catalogs-hero-title {
        font-size: 1.6rem;
    }

    .catalog-image {
        height: 180px;
    }

    .catalog-title {
        font-size: 1.05rem;
    }
}