@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap");

:root {
    --primary-color: #0d253f;
    --accent-color: #00b4d8;
    --text-color: #333;
    --bg-gradient: radial-gradient(circle at center, #2b303b 0%, #1a1e24 100%);
    --font-heading: "Playfair Display", serif;
    --font-body: "Lato", sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: #1a1e24;
    background-image: var(--bg-gradient);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

.catalog-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    box-sizing: border-box;
}

.flip-book {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    background-size: cover;
    margin: 0 auto;
}

.page {
    /* Slightly more padding top/bottom now that we have space */
    padding: 45px 35px;
    background-color: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    color: var(--text-color);
    box-sizing: border-box;
    /* Magazine glossy paper feel approximation */
    background-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(255, 255, 255, 0) 5%,
        rgba(255, 255, 255, 0) 95%,
        rgba(0, 0, 0, 0.02) 100%
    );
    display: none; /* Hide by default, library will show */
}

.page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hard Cover Styling - Magazine Cover style */
.page.-hard {
    background-color: #fff;
    color: var(--primary-color);
    border-width: 0;
}

/* Page Header with Magazine Font */
.page-header {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    /* Compact */
    margin-bottom: 15px;
    /* Compact */
    margin-top: 0;
}

.page-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Slightly smaller title for fit */
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-style: italic;
}

/* Image styling - Maximum Compactness */
.page-image {
    width: 100%;
    height: 200px;
    /* Reduced to 200px to save vertical space */
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    /* Smaller font to fit more text */
    line-height: 1.5;
    /* Tighter line height */
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
    font-weight: 300;
}

/* Tech Specs - Compact */
.tech-specs-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 5px 0;
    /* Minimal margin */
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 2px;
    /* Very tight rows */
}

.product-features li {
    padding: 3px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    font-family: var(--font-body);
}

.product-features li::before {
    content: "▪";
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 0.9rem;
    line-height: 1rem;
}

.page-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #aaa;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-num {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* Cover & Specifics */
.logo-large {
    width: 200px;
    margin-bottom: 30px;
}

.cover-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
}

.cover-year {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
}

.service-highlight {
    background: #f8f9fa;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

/* Modern Back Cover Styles */
.back-cover-content {
    background: #0d253f;
    color: white;
    padding: 40px;
}

.modern-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    margin-bottom: 30px;
}

.mc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.mc-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.mc-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.5px;
}

/* Navigation Buttons - Minimal Elegant */
.controls {
    display: block;
}

#prevBtn,
#nextBtn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

#prevBtn {
    left: 30px;
}

#nextBtn {
    right: 30px;
}

#prevBtn:hover,
#nextBtn:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* Cover Content Fixes */
.cover-content {
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cover-bg {
    filter: brightness(0.6);
    z-index: 0;
}

/* Mobile Download Button */
.mobile-download-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-family: var(--font-body);
    font-weight: 700;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.mobile-download-btn:active {
    transform: translateX(-50%) scale(0.95);
}

@media (max-width: 640px) {
    .mobile-download-btn {
        display: flex;
    }
    
    /* Optional: adjustments for controls on mobile if needed */
    #prevBtn, #nextBtn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(255,255,255,0.8);
    }
    #prevBtn { left: 10px; }
    #nextBtn { right: 10px; }
}
