/* ============================================================
   RESET AND BASE STYLES
   ============================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #e3cbb3;
    color: #000;
    overflow-x: hidden;
}

/* ============================================================
   NAVIGATION BAR - DESKTOP/LAPTOP
   ============================================================ */

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    height: 75px;
    z-index: 1000;
    background-color: #e3cbb3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

/* ============================================================
   MAIN CONTAINER & LAYOUT - DESKTOP/LAPTOP
   ============================================================ */

/* Main Container */
.main-container {
    padding-top: 75px;
    min-height: 100vh;
}

/* Header Section */
.header-section {
    padding: 3rem 3rem 2rem;
    border-bottom: 2px solid #000;
}

.issue-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 500;
}

.issue-number {
    font-size: 2rem;
}

.issue-title {
    font-size: 2rem;
    font-weight: 600;
}

.issue-date {
    font-size: 2rem;
}

/* ============================================================
   MAGAZINE PREVIEW SECTION - DESKTOP/LAPTOP
   ============================================================ */

/* Magazine Preview Section */
.magazine-preview {
    padding: 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.magazine-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #2a2a2a;
    cursor: pointer;
}

.magazine-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.magazine-item.featured {
    grid-column: span 2;
}

.magazine-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.magazine-mockup {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magazine-mockup img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.magazine-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: #fff;
    z-index: 10;
}

.magazine-title {
    font-size: 4rem;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.magazine-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.spread-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================================
   DESCRIPTION SECTION - DESKTOP/LAPTOP
   ============================================================ */

/* Description Section */
.description-section {
    padding: 4rem 3rem;
    background-color: #fff;
}

.description-content {
    max-width: 1000px;
    margin: 0 auto;
}

.description-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.description-text p {
    margin-bottom: 1.5rem;
}

/* Magazine Stats */
.magazine-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e3cbb3;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   ORDER SECTION - DESKTOP/LAPTOP
   ============================================================ */

/* Order Section */
.order-section {
    margin-top: 4rem;
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid #e3cbb3;
}

.order-button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.order-button:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.order-info {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
}

/* ============================================================
   BUTTONS & INTERACTIVE ELEMENTS - DESKTOP/LAPTOP
   ============================================================ */

/* Instagram Button */
.instagram-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 50;
    letter-spacing: 0.05em;
}

.instagram-button:hover {
    background-color: rgba(0, 0, 0, 1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Info */
.contact-info {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 50;
}

.contact-link {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.contact-link:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

.contact-label {
    display: none;
}

.contact-value {
    color: #fff;
    font-weight: 400;
}

/* ============================================================
   RESPONSIVE DESIGN - TABLETS & MOBILE DEVICES
   ============================================================ */

/* --------------------------------------------------
   TABLETS (Max Width: 1024px)
   -------------------------------------------------- */
@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .magazine-item.featured {
        grid-column: span 1;
    }
    
    .magazine-title {
        font-size: 3rem;
    }
}

/* --------------------------------------------------
   MOBILE DEVICES (Max Width: 768px)
   -------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .header-section {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .issue-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .magazine-preview {
        padding: 2rem 1.5rem;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .magazine-mockup {
        height: 400px;
    }
    
    .magazine-title {
        font-size: 2.5rem;
    }
    
    .description-section {
        padding: 3rem 1.5rem;
    }
    
    .description-title {
        font-size: 2rem;
    }
    
    .magazine-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ============================================================
   MODAL STYLES - IMAGE VIEWER
   ============================================================ */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

/* ============================================================
   ORDER MODAL STYLES - FORM POPUP
   ============================================================ */

/* Order Modal Styles */
.order-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.order-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.order-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
    transition: 0.3s;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.order-modal-close:hover,
.order-modal-close:focus {
    color: #666;
}

.order-modal-title {
    padding: 2rem 2rem 1rem;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    text-align: center;
    border-bottom: 2px solid #e3cbb3;
}

.form-container {
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
}

.form-container iframe {
    border-radius: 0 0 15px 15px;
}

@media (max-width: 768px) {
    .order-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .order-modal-title {
        font-size: 1.5rem;
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .form-container {
        padding: 0.5rem;
    }
    
    .form-container iframe {
        height: 800px;
    }
}
