/* Pop's Oasis - Vintage Desert Style
   Color Palette:
   - Cream/Parchment: #F5F0E6
   - Desert Orange: #D4763A
   - Sage Green: #8B9A7C
   - Deep Brown: #3D2B1F
   - Warm White: #FDF9F3
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #F5F0E6;
    color: #3D2B1F;
    line-height: 1.7;
    font-size: 16px;
}

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

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(61, 43, 31, 0.95);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #F5F0E6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #D4763A;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #F5F0E6;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4763A;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #D4763A;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) brightness(0.9);
}

.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    background: rgba(61, 43, 31, 0.85);
    border: 3px solid #D4763A;
    max-width: 600px;
    margin: 80px 20px 0;
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    color: #F5F0E6;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #D4763A;
    margin-bottom: 10px;
}

.hero-location {
    font-size: 1.1rem;
    color: #8B9A7C;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #3D2B1F;
    text-align: center;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4763A, transparent);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    font-style: italic;
}

/* ============================================
   Photo Gallery
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background: #FDF9F3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(61, 43, 31, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #3D2B1F;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 43, 31, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    filter: sepia(30%);
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(61, 43, 31, 0.9));
    color: #F5F0E6;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ============================================
   History Timeline
   ============================================ */
.history-section {
    padding: 100px 0;
    background: #F5F0E6;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #D4763A, #8B9A7C);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #D4763A;
    border: 3px solid #F5F0E6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #D4763A;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4763A;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #3D2B1F;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.8;
}

.timeline-content blockquote {
    margin: 20px 0;
    padding: 20px 25px;
    background: rgba(139, 154, 124, 0.15);
    border-left: 4px solid #8B9A7C;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #3D2B1F;
}

.timeline-content blockquote span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Location Feature */
.location-feature {
    text-align: center;
    margin-top: 60px;
}

.location-feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #3D2B1F;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(61, 43, 31, 0.2);
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Read More CTA */
.read-more-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(139, 154, 124, 0.1);
    border-radius: 10px;
}

.read-more-cta p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #3D2B1F;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #D4763A;
    color: #F5F0E6;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #b8623a;
    transform: translateY(-2px);
}

/* ============================================
   Guestbook
   ============================================ */
.guestbook-section {
    padding: 100px 0;
    background: #3D2B1F;
    color: #F5F0E6;
}

.guestbook-section .section-header h2 {
    color: #F5F0E6;
}

.guestbook-section .section-intro {
    color: #bbb;
}

.guestbook-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.guestbook-form-container,
.guestbook-entries {
    background: rgba(245, 240, 230, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(212, 118, 58, 0.3);
}

.guestbook-form-container h3,
.guestbook-entries h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #D4763A;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B9A7C;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(245, 240, 230, 0.1);
    border: 1px solid rgba(212, 118, 58, 0.3);
    border-radius: 5px;
    color: #F5F0E6;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4763A;
    background: rgba(245, 240, 230, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #D4763A;
    border: none;
    border-radius: 5px;
    color: #F5F0E6;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #b8623a;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Guestbook Entries */
.guestbook-entries {
    max-height: 500px;
    overflow-y: auto;
}

.guestbook-entries::-webkit-scrollbar {
    width: 8px;
}

.guestbook-entries::-webkit-scrollbar-track {
    background: rgba(245, 240, 230, 0.05);
}

.guestbook-entries::-webkit-scrollbar-thumb {
    background: #D4763A;
    border-radius: 4px;
}

.entry-card {
    background: rgba(245, 240, 230, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #8B9A7C;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.entry-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #D4763A;
}

.entry-location {
    font-size: 0.85rem;
    color: #8B9A7C;
}

.entry-date {
    font-size: 0.8rem;
    color: #888;
}

.entry-message {
    color: #ddd;
    line-height: 1.6;
    font-size: 0.95rem;
}

.loading-entries {
    text-align: center;
    color: #888;
    font-style: italic;
}

.no-entries {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #2a1e15;
    padding: 50px 0;
    text-align: center;
}

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

.footer-dedication {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #8B9A7C;
    margin-bottom: 15px;
}

.footer-tagline {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: #D4763A;
    margin-bottom: 20px;
}

.footer-sister {
    font-size: 0.95rem;
    color: #8B9A7C;
    margin-bottom: 15px;
}

.footer-sister a {
    color: #D4763A;
    text-decoration: none;
    border-bottom: 1px dotted #D4763A;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-sister a:hover {
    color: #F5F0E6;
    border-color: #F5F0E6;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #F5F0E6;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* Version Toggle Buttons */
.lightbox-version-toggle {
    display: none;
    justify-content: center;
    gap: 0;
    margin-top: 15px;
}

.lightbox-version-toggle.has-versions {
    display: flex;
}

.version-btn {
    background: rgba(245, 240, 230, 0.1);
    border: 1px solid rgba(212, 118, 58, 0.5);
    color: #999;
    padding: 8px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-btn:first-child {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.version-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.version-btn:hover {
    background: rgba(212, 118, 58, 0.2);
    color: #F5F0E6;
}

.version-btn.active {
    background: #D4763A;
    border-color: #D4763A;
    color: #F5F0E6;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #F5F0E6;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 10px;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #D4763A;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.2);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .guestbook-container {
        grid-template-columns: 1fr;
    }

    .guestbook-entries {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-overlay {
        padding: 25px;
        margin: 70px 15px 0;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 25px;
    }

    .timeline-item::before {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 500px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
    }

    .decorative-line {
        width: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Message styling for form feedback */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.form-message.success {
    background: rgba(139, 154, 124, 0.3);
    border: 1px solid #8B9A7C;
    color: #8B9A7C;
}

.form-message.error {
    background: rgba(212, 118, 58, 0.3);
    border: 1px solid #D4763A;
    color: #D4763A;
}
