/* ========================================
   E-KATALOG PAGE STYLES
   ======================================== */

/* CATALOG HERO */
.catalog-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.catalog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.catalog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 10, 9, 0.85), rgba(13, 10, 9, 0.7));
    z-index: 2;
}

.catalog-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.catalog-breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog-breadcrumb a:hover {
    color: #fff;
}

.catalog-breadcrumb .current {
    color: #fff;
}

.catalog-title {
    margin: 0;
}

.catalog-title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.catalog-title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CATALOG FILTERS */
.catalog-filters-section {
    background: #0d0a09;
    padding: 40px 0;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.container-catalog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: var(--gold-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.catalog-filter-select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.catalog-filter-select:hover,
.catalog-filter-select:focus {
    border-color: var(--gold-light);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: #1a1a1a;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #888;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--gold-light);
    color: #0d0a09;
    border-color: var(--gold-light);
}

/* CATALOG GRID */
.catalog-grid-section {
    background: #0d0a09;
    padding: 80px 0;
    min-height: 600px;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.catalogs-grid.list-view {
    grid-template-columns: 1fr;
}

/* CATALOG CARD */
.catalog-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.6s ease forwards;
}

.catalog-card:nth-child(1) { animation-delay: 0.1s; }
.catalog-card:nth-child(2) { animation-delay: 0.2s; }
.catalog-card:nth-child(3) { animation-delay: 0.3s; }
.catalog-card:nth-child(4) { animation-delay: 0.4s; }
.catalog-card:nth-child(5) { animation-delay: 0.5s; }
.catalog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.2);
}

.catalog-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.1);
}

.catalog-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-light);
    color: #0d0a09;
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
    animation: pulse 2s ease infinite;
}

.catalog-badge.featured {
    background: linear-gradient(135deg, var(--gold-light), #d4a017);
}

.catalog-badge.special {
    background: linear-gradient(135deg, #c9b037, var(--gold-light));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.catalog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.95), rgba(212, 160, 23, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.catalog-card:hover .catalog-overlay {
    opacity: 1;
}

.btn-preview {
    background: #0d0a09;
    color: var(--gold-light);
    border: 2px solid var(--gold-light);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.catalog-card:hover .btn-preview {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.btn-preview:hover {
    background: var(--gold-light);
    color: #0d0a09;
    transform: scale(1.05);
}

/* CATALOG CARD CONTENT */
.catalog-card-content {
    padding: 30px;
}

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.catalog-category {
    background: rgba(184, 134, 11, 0.2);
    color: var(--gold-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-year {
    color: #888;
    font-size: 0.9rem;
}

.catalog-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.catalog-card:hover h3 {
    color: #fff;
}

.catalog-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.catalog-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.85rem;
}

.info-item svg {
    opacity: 0.5;
}

.catalog-actions {
    display: flex;
    gap: 10px;
}

.btn-download {
    flex: 1;
    background: var(--gold-light);
    color: #0d0a09;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.btn-share {
    background: #1a1a1a;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--gold-light);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: var(--gold-light);
    color: #0d0a09;
    border-color: var(--gold-light);
}

/* PDF VIEWER MODAL */
.pdf-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-viewer-modal.active {
    display: flex;
    opacity: 1;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-modal-header {
    background: #0d0a09;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.pdf-modal-header h3 {
    color: var(--gold-light);
    margin: 0;
    font-size: 1.2rem;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-control-btn {
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--gold-light);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-control-btn:hover {
    background: var(--gold-light);
    color: #0d0a09;
    border-color: var(--gold-light);
}

#pdf-zoom-level {
    color: #888;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.pdf-viewer-area {
    flex: 1;
    background: #0d0a09;
    padding: 20px;
    overflow: auto;
}

.pdf-viewer-area iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.pdf-modal-footer {
    background: #0d0a09;
    padding: 15px 30px;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.pdf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pdf-nav-btn {
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--gold-light);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-nav-btn:hover {
    background: var(--gold-light);
    color: #0d0a09;
}

#pdf-page-info {
    color: #888;
    font-size: 0.9rem;
}

/* REQUEST CATALOG SECTION */
.request-catalog-section {
    background: #0d0a09;
    padding: 80px 0;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.request-box {
    background: linear-gradient(135deg, #1a1a1a, #0d0a09);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.request-icon {
    color: var(--gold-light);
    margin-bottom: 30px;
}

.request-box h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold-light);
    margin: 0 0 20px 0;
}

.request-box p {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 40px 0;
}

.btn-request-catalog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-light);
    color: #0d0a09;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-request-catalog:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .catalog-title-main {
        font-size: 2.5rem;
    }
    
    .catalog-title-sub {
        font-size: 1rem;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalogs-grid {
        grid-template-columns: 1fr;
    }
    
    .pdf-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .request-box {
        padding: 40px 20px;
    }
    
    .request-box h2 {
        font-size: 2rem;
    }
}