/* Color Variables */
:root {
    --burnt-orange: #E86A33;
    --terracotta: #D95F0E;
    --cream: #F5F2E9;
    --forest-green: #2D5A27;
    --charcoal: #2D2D2D;
    --text-black: #1A1A1A;
    --white: #FFFFFF;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-black);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER WITH LOGO */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 280px;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(232, 106, 51, 0.85) 0%, rgba(217, 95, 14, 0.85) 100%),
                url('images/mc-mag-cover.jpeg') center/cover no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-content h2 {
    font-size: 1.5em;
    color: var(--cream);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content .tagline {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--white);
}

.cover-image {
    margin: 30px 0;
}

.cover-image img {
    width: 350px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.1em;
    color: var(--cream);
    max-width: 800px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* MAGAZINE PREVIEW SECTION */
.magazine-preview-section {
    background: var(--white);
    padding: 60px 20px;
}

.preview-intro {
    text-align: center;
    color: var(--charcoal);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.preview-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preview-btn {
    padding: 12px 24px;
    background: var(--white);
    color: var(--burnt-orange);
    border: 2px solid var(--burnt-orange);
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.preview-btn:hover {
    background: var(--burnt-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 106, 51, 0.3);
}

.preview-btn.active {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--terracotta) 100%);
    color: var(--white);
    border-color: var(--burnt-orange);
}

.preview-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preview-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    max-height: 800px;
    border: 3px solid var(--burnt-orange);
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--white);
}

.pdf-preview-container {
    width: 100%;
    padding: 20px;
}

.pdf-loading {
    text-align: center;
    padding: 40px;
    color: var(--charcoal);
    font-size: 1.1em;
}

.pdf-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pdf-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pdf-page canvas {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(232, 106, 51, 0.95), transparent);
    padding: 15px 20px;
    text-align: center;
    z-index: 10;
    margin-top: -40px;
    pointer-events: none;
}

.preview-note {
    color: var(--white);
    font-weight: 500;
    font-size: 1em;
    margin: 0;
}

/* ACCESS FORM SECTION */
.access-form-section {
    background: var(--cream);
    padding: 60px 20px;
}

.form-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border: 3px solid var(--burnt-orange);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    color: var(--burnt-orange);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-weight: 500;
}

.required {
    color: var(--burnt-orange);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.1);
}

.cta-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--terracotta) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 106, 51, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.trust-badge {
    text-align: center;
    margin-top: 20px;
    color: var(--forest-green);
    font-size: 0.9em;
    font-weight: 500;
}

/* Google Forms Embed */
.google-form-embed {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.google-forms-iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.form-placeholder {
    padding: 20px;
    text-align: center;
}

.form-placeholder code {
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--burnt-orange);
}

/* PREVIEW SECTION */
.preview-section {
    background: var(--cream);
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    color: var(--burnt-orange);
    font-size: 2em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
    text-align: center;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--terracotta);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card h3 {
    color: var(--burnt-orange);
    font-size: 1.3em;
    margin: 15px 15px 10px;
}

.feature-card p {
    color: var(--charcoal);
    font-size: 0.95em;
    margin: 0 15px 20px;
}

/* PREVIOUS EDITIONS */
.previous-editions {
    background: var(--charcoal);
    padding: 60px 20px;
    color: var(--white);
}

.previous-editions .section-title {
    color: var(--cream);
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.edition-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.edition-card.clickable {
    cursor: pointer;
}

.edition-card.clickable:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.edition-card:first-child {
    border-color: var(--burnt-orange);
}

.edition-card:last-child {
    border-color: var(--terracotta);
}

.edition-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.edition-card p {
    font-size: 1.1em;
    opacity: 0.9;
}

.podcast-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.podcast-btn {
    padding: 12px 24px;
    background: var(--burnt-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 500;
}

.podcast-btn:hover {
    background: var(--terracotta);
}

/* ABOUT SECTION */
.about-section {
    background: var(--cream);
    padding: 60px 20px;
}

.about-section .section-title {
    color: var(--forest-green);
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.about-column {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.about-column h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.about-column:first-child h3 {
    color: var(--burnt-orange);
}

.about-column:nth-child(2) h3 {
    color: var(--terracotta);
}

.about-column:last-child h3 {
    color: var(--burnt-orange);
}

.about-column p {
    color: var(--charcoal);
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stats span {
    padding: 15px 30px;
    background: var(--burnt-orange);
    color: var(--white);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

/* FOOTER */
.footer {
    background: var(--charcoal);
    padding: 40px 20px;
    text-align: center;
    color: var(--cream);
    font-size: 14px;
}

.footer a {
    color: var(--burnt-orange);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 8px 0;
}

/* SUCCESS PAGE STYLES */
.success-hero {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--terracotta) 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.success-hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.success-hero p {
    font-size: 1.2em;
    color: var(--cream);
}

.download-section {
    background: var(--cream);
    padding: 60px 20px;
}

.download-buttons {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* MAGAZINES SECTION */
.magazines-section {
    background: var(--cream);
    padding: 60px 20px;
}

.magazines-section .section-title {
    text-align: center;
    color: var(--burnt-orange);
    font-size: 2em;
    margin-bottom: 40px;
}

.magazine-item {
    background: var(--white);
    border: 2px solid var(--burnt-orange);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.magazine-item h3 {
    color: var(--burnt-orange);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.magazine-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.magazine-btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
    display: inline-block;
}

.magazine-btn.primary {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--terracotta) 100%);
    color: var(--white);
    border: none;
}

.magazine-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 106, 51, 0.4);
}

.magazine-btn.secondary {
    background: transparent;
    border: 2px solid var(--burnt-orange);
    color: var(--burnt-orange);
}

.magazine-btn.secondary:hover {
    background: var(--burnt-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.download-all-section {
    background: var(--white);
    border: 3px solid var(--forest-green);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0;
}

.download-all-section h3 {
    color: var(--forest-green);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.download-all-section p {
    color: var(--charcoal);
    margin-bottom: 25px;
    font-size: 1.1em;
}

.download-btn {
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--terracotta) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 106, 51, 0.4);
}

.download-btn.secondary {
    background: transparent;
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
}

.download-btn.secondary:hover {
    background: var(--terracotta);
    color: var(--white);
}

.social-share {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.social-share h3 {
    color: var(--burnt-orange);
    margin-bottom: 25px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 24px;
    background: var(--forest-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 500;
}

.social-btn:hover {
    background: var(--burnt-orange);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
        max-width: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
    }
    
    .hero-content h2 {
        font-size: 1.2em;
    }
    
    .cover-image img {
        width: 100%;
        max-width: 300px;
    }
    
    .preview-buttons {
        gap: 10px;
    }
    
    .preview-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .preview-wrapper {
        min-height: 400px;
        max-height: 600px;
    }
    
    .preview-container {
        padding: 15px;
    }
    
    .pdf-page {
        max-width: 100%;
    }
    
    .google-forms-iframe {
        min-height: 700px;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .editions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
    }
    
    .magazine-actions {
        flex-direction: column;
    }
    
    .magazine-btn {
        width: 100%;
    }
    
    .download-all-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }
    
    .access-form-section,
    .preview-section,
    .about-section {
        padding: 40px 15px;
    }
    
    .form-card {
        padding: 25px 15px;
    }
}

