/* ============================================
   BKC Catalog Page - Professional Styling
   Brand Colors: Blue #0067B5, Yellow #F2E500, Gray #5A5A5A
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0067B5;
    --color-accent: #F2E500;
    --color-gray: #5A5A5A;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

/* Keep header left-aligned in RTL */
html[dir="rtl"] .header,
html[dir="rtl"] .header-content,
html[dir="rtl"] .nav {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .nav {
    flex-direction: row;
}

html[dir="rtl"] .language-switcher {
    margin-left: 1rem;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 0;
    border-left: 1px solid var(--color-border);
    border-right: none;
}

html[dir="rtl"] .footer-content {
    text-align: right;
}

html[dir="rtl"] .footer-section {
    text-align: right;
}

html[dir="rtl"] .catalog-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-credit .credit-logo {
    left: auto;
    right: calc(100% + 0.5rem);
    transform: translateY(-50%) translateX(15px) scale(0.7);
}

html[dir="rtl"] .footer-credit .credit-link:hover .credit-logo {
    transform: translateY(-50%) translateX(0) scale(1);
}

html[dir="rtl"] .modal-header,
html[dir="rtl"] .modal-header h2 {
    text-align: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/periodic-table.png');
    background-size: 600px;
    background-position: -200px -100px;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--color-primary);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-title {
    color: var(--color-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 103, 181, 0.1);
}

.lang-btn.active {
    color: var(--color-primary);
    background: rgba(0, 103, 181, 0.15);
}

.lang-separator {
    color: var(--color-border);
    font-weight: 300;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #004a8a 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding: 4rem 0;
    min-height: 60vh;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/chemistry.png');
    background-size: 400px;
    background-position: top right;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.main-content .container {
    position: relative;
    z-index: 1;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ============================================
   Catalog Card
   ============================================ */
.catalog-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    position: relative;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    opacity: 0;
    transition: var(--transition);
}

.catalog-card:hover::before {
    opacity: 1;
}

.catalog-preview {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.catalog-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 103, 181, 0.1) 0%, rgba(0, 74, 138, 0.2) 100%);
    z-index: 1;
}

.catalog-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230067B5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.catalog-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: var(--transition);
    z-index: 0;
}

.catalog-card:hover .catalog-preview-image {
    opacity: 0.6;
    transform: scale(1.05);
}

.pdf-icon {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.language-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.catalog-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.catalog-description {
    display: none;
}

.catalog-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0;
}

.btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 103, 181, 0.3);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1002;
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: center;
    margin: 0;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    min-height: 0;
}

#pdfViewer {
    width: 100%;
    height: calc(90vh - 100px);
    border: none;
    border-radius: 0 0 12px 12px;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
}

/* PDF.js Viewer Styles */
.pdf-viewer-container {
    width: 100%;
    height: calc(90vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.pdf-control-btn {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1;
}

.pdf-control-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pdf-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-page-info,
.pdf-zoom-info {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.pdf-canvas-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    background: #525252;
    -webkit-overflow-scrolling: touch;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: var(--color-white);
}

/* Fallback for mobile devices */
.pdf-fallback {
    display: none;
    padding: 2rem;
    text-align: center;
}

.pdf-fallback.active {
    display: block;
}

.pdf-fallback-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.pdf-fallback-link:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo-link {
    display: inline-block;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.footer-logo-link:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-contact {
    max-width: 300px;
}

.footer-info {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-email {
    color: rgba(255, 255, 255, 0.85);
}

.footer-email .email-prefix,
.footer-email .email-suffix {
    color: rgba(255, 255, 255, 0.85);
}

.footer-email .email-domain {
    color: var(--color-primary);
    font-weight: 500;
}

.footer-email:hover .email-domain {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-credit {
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
    opacity: 0.85 !important;
}

.footer-credit .heart {
    color: var(--color-accent);
    font-size: 1.3rem;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.footer-credit {
    position: relative;
}

.footer-credit .credit-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    vertical-align: middle;
}

.footer-credit .credit-text {
    transition: var(--transition);
    display: inline-block;
}

.footer-credit .credit-logo {
    height: 24px;
    width: auto;
    max-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%) translateX(-15px) scale(0.7);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    display: block;
}

.footer-credit .credit-link:hover .credit-text {
    color: var(--color-white);
}

.footer-credit .credit-link:hover .credit-logo {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    visibility: visible;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 0;
    }

    .header-content {
        flex-direction: row;
        gap: 1rem;
        padding: 0.75rem 0;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        height: 40px;
        flex-shrink: 0;
    }

    .nav {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .header-title {
        font-size: 0.9rem;
        text-align: right;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .language-switcher {
        margin-left: 0.5rem;
        margin-top: 0;
        padding-left: 0.5rem;
        padding-top: 0;
        border-left: 1px solid var(--color-border);
        border-top: none;
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    html[dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
    }

    .lang-btn {
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        min-width: 44px;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .catalogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    #pdfViewer {
        height: calc(95vh - 100px);
    }

    .pdf-viewer-container {
        height: calc(95vh - 100px);
    }

    .pdf-controls {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .pdf-control-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .pdf-page-info,
    .pdf-zoom-info {
        font-size: 0.8rem;
        min-width: 50px;
    }

    .pdf-canvas-container {
        padding: 0.5rem;
    }

    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        max-width: 100%;
        align-items: center;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-tagline {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .footer-section {
        align-items: center;
    }

    .footer-heading {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .footer-nav {
        align-items: center;
        gap: 1rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-nav a:hover {
        transform: none;
    }

    .footer-contact {
        max-width: 100%;
    }

    .footer-info {
        font-size: 0.85rem;
        margin: 0.75rem 0;
        padding: 0 1rem;
        line-height: 1.7;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }

    .footer-credit {
        font-size: 0.8rem !important;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .footer-credit .credit-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.25rem 0;
        min-height: 44px;
    }

    .footer-credit .credit-logo {
        max-width: 100px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .pdf-viewer-container {
        height: calc(95vh - 80px);
    }

    .pdf-controls {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .pdf-control-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .pdf-page-info,
    .pdf-zoom-info {
        font-size: 0.75rem;
        min-width: 45px;
    }

    .pdf-canvas-container {
        padding: 0.25rem;
    }

    .header-content {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .logo {
        height: 35px;
    }

    .nav {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .header-title {
        font-size: 0.8rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .language-switcher {
        margin-left: 0.4rem;
        padding-left: 0.4rem;
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.625rem;
    }

    .language-switcher {
        padding-top: 0.625rem;
        gap: 0.4rem;
    }

    .lang-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .main-content {
        padding: 2rem 0;
    }

    .catalog-info {
        padding: 1.25rem;
    }

    .catalog-title {
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.25rem;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-heading {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-nav {
        gap: 0.875rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }

    .footer-info {
        font-size: 0.8rem;
        margin: 0.625rem 0;
    }

    .footer-credit {
        font-size: 0.75rem !important;
    }

    .footer-credit .credit-logo {
        max-width: 90px;
        height: 18px;
    }
}

/* ============================================
   Loading State
   ============================================ */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-gray);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

