/* Maple Leaf Shop Styles */

/* Color Variables */
:root {
    --dark-green: #0F3B2E;
    --mid-green: #6E8F6B;
    --maple-yellow: #F4B400;
    --aged-paper: #F4F1E8;
    --soft-sage: #E3E8E1;
    --deep-text: #0B1F17;
    --darker-gold: #D99A00;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--aged-paper);
    color: var(--deep-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.shop-header {
    background-color: var(--dark-green);
    color: var(--aged-paper);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--maple-yellow);
    box-shadow: 0 2px 8px rgba(15, 59, 46, 0.2);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--soft-sage);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Container */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Intro Section */
.intro-section {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 2px solid var(--soft-sage);
    margin-bottom: 2rem;
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--mid-green);
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Section */
.posts-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Post Card */
.post-card {
    background-color: white;
    border: 2px solid var(--soft-sage);
    padding: 2.5rem;
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(15, 59, 46, 0.12);
}

.post-title {
    font-size: 1.9rem;
    color: var(--dark-green);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--soft-sage);
}

.post-body {
    font-size: 1.05rem;
    color: var(--deep-text);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1.5rem;
}

/* Post Image Gallery */
.post-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--soft-sage);
}

.post-gallery img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 2px solid var(--soft-sage);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-gallery img:hover {
    border-color: var(--maple-yellow);
    transform: scale(1.03);
}

/* Footer */
.shop-footer {
    background-color: var(--dark-green);
    color: var(--aged-paper);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--maple-yellow);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content p:first-child {
    font-size: 0.9rem;
    color: var(--soft-sage);
}

.footer-content p:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Landing Page Styles */
.landing-section {
    text-align: center;
    padding: 3rem 0;
}

.landing-section h2 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.landing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.landing-card {
    background-color: white;
    border: 3px solid var(--dark-green);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--deep-text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.landing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(15, 59, 46, 0.2);
    border-color: var(--maple-yellow);
    background-color: var(--soft-sage);
}

.landing-icon {
    width: 120px;
    height: 120px;
    background-color: var(--aged-paper);
    border: 2px solid var(--mid-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.landing-card:hover .landing-icon {
    background-color: var(--maple-yellow);
    border-color: var(--dark-green);
    transform: scale(1.1);
}

.landing-card h3 {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin: 0;
}

.landing-card p {
    font-size: 1.1rem;
    color: var(--mid-green);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-gallery img {
        width: 130px;
        height: 130px;
    }

    .intro-section h2 {
        font-size: 1.6rem;
    }

    .intro-section p {
        font-size: 1rem;
    }

    .landing-section h2 {
        font-size: 2rem;
    }

    .landing-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .landing-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 1rem;
    }

    .post-card {
        padding: 1rem;
    }

    .post-gallery img {
        width: 100px;
        height: 100px;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 50px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 59, 46, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--aged-paper);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--maple-yellow);
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--aged-paper);
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Make product images appear clickable */
.product-image img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(15, 59, 46, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    #modal-caption {
        font-size: 1rem;
        padding: 15px 0;
    }
}
