﻿/* Root variables with beach-inspired colors */
:root {
    --sand-light: #F5E6D3;
    --sand: #E8D4B8;
    --sand-dark: #D4BA96;
    --sea-light: #B8D4E8;
    --sea: #8AB4D5;
    --sea-dark: #5A8DB8;
    --sea-deep: #3D6B8F;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #FFFFFF;
}

html, body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sea-light) 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 2px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--sea-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sea-deep);
}

.content {
    padding-top: 0;
}

/* Landing Page Styles */
.landing-container {
    width: 100%;
    overflow-x: hidden;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.9) 0%, rgba(184, 212, 232, 0.9) 100%);
    text-align: center;
    position: relative;
}

.hero-content {
    animation: fadeIn 1.5s ease-in;
}

.couple-names {
    font-size: 5rem;
    color: var(--sea-deep);
    margin: 0;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sea), transparent);
    margin: 2rem auto;
}

.wedding-date {
    font-size: 2.5rem;
    color: var(--sea-dark);
    letter-spacing: 8px;
    margin: 1rem 0;
    font-weight: 400;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-style: italic;
    margin-top: 1rem;
    letter-spacing: 2px;
}

.hero-cta {
    margin-top: 2.5rem;
    animation: fadeIn 2s ease-in;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--sea-dark);
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Photo Gallery */
.photo-gallery {
    padding: 4rem 2rem;
    background: var(--white);
}

.photo-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-card {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card.wide {
    flex: 2;
    max-width: 600px;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Save the Date Section */
.save-date-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--sea-light) 0%, var(--sand-light) 100%);
}

.save-date-section h2 {
    font-size: 3rem;
    color: var(--sea-deep);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.save-date-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Calendar Section on Home Page */
.calendar-section-home {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--white);
}

.calendar-section-home h2 {
    color: var(--sea-deep);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.calendar-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-style: italic;
}

.calendar-buttons-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn-calendar-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--sea-dark);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-calendar-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--sea);
}

.btn-calendar-home.google {
    border-color: #4285F4;
}

.btn-calendar-home.google:hover {
    background: #4285F4;
    color: var(--white);
}

.btn-calendar-home.apple {
    border-color: #000000;
}

.btn-calendar-home.apple:hover {
    background: #000000;
    color: var(--white);
}

.calendar-icon-img-home {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.btn-calendar-home span {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.btn-calendar-home:hover span {
    color: var(--white);
}

/* Information Page Styles */
.information-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.info-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-in;
}

.info-header h1 {
    font-size: 4rem;
    color: var(--sea-deep);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-style: italic;
    letter-spacing: 2px;
}

.venue-section {
    display: flex;
    gap: 3rem;
    margin: 4rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.venue-card {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-8px);
}

.venue-card.ceremony {
    border-top: 4px solid var(--sea);
}

.venue-card.reception {
    border-top: 4px solid var(--sand-dark);
}

.venue-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Venue Image Styles */
.venue-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.venue-card:hover .venue-image {
    transform: scale(1.05);
}

.venue-card h2 {
    font-size: 1.8rem;
    color: var(--sea-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.venue-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1rem 0;
    font-weight: 400;
}

.venue-card .time {
    font-size: 2rem;
    color: var(--sea-deep);
    font-weight: 600;
    margin: 1.5rem 0;
    letter-spacing: 2px;
}

.venue-card .description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
}

.venue-divider {
    font-size: 2rem;
    color: var(--sea);
    flex: 0;
}

/* Map Container Styles */
.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border-radius: 8px 8px 0 0;
}

.map-link {
    display: block;
    background: var(--sea-dark);
    color: var(--white);
    text-align: center;
    padding: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.map-link:hover {
    background: var(--sea-deep);
    color: var(--white);
}

.photo-section {
    margin: 4rem 0;
    text-align: center;
}

.info-photo {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* Buttons */
.btn-wedding, .btn-wedding-outline {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.btn-wedding {
    background: var(--sea-dark);
    color: var(--text-light);
    border: 2px solid var(--sea-dark);
}

.btn-wedding:hover {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-wedding-outline {
    background: transparent;
    color: var(--sea-dark);
    border: 2px solid var(--sea-dark);
}

.btn-wedding-outline:hover {
    background: var(--sea-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Navigation Overrides */
.sidebar {
    background: linear-gradient(180deg, var(--sand-dark) 0%, var(--sand) 100%);
}

.top-row {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-size: 1.5rem !important;
    letter-spacing: 3px !important;
    font-weight: 300 !important;
    color: var(--sea-deep) !important;
}

.navbar-toggler {
    border-color: var(--sea-dark) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61, 107, 143, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    color: var(--sea-deep) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: var(--sea) !important;
    border-radius: 4px;
}

.bi {
    color: var(--sea-dark);
}

/* Original Blazor Styles (preserved) */
.btn-primary {
    color: #fff;
    background-color: var(--sea-dark);
    border-color: var(--sea);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--sea);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDk9IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdHZyIiB4bWxuczpleGFtcGxlPSJodHRwOi8vd3d3LnczLm9yZy8xOTc5L2V4YW1wbGUuc3ZnIiBvdmVyZmxvdz0iaGlkZGVuIj48ZGVmcz48Y2xpcFBhdGgaWJhc2U2NCkiIHhtbG5zPSJzdHJpbmc6IiB4dHJpbWV9Ij4KPCEtLUZhcmNlV2hlbiFgTW9yZSByZXNwb25zaXZlLCBnbG9uZWdlIHJvdXRpbmc8IS0+PHJlY3QgeD0iMjM1IiB5PSI1MSIgd2lkdGg9IiU3RCUwNjgiIGhlaWdodD0iJSVFOCUwNjgiLz48L2NsaXBQYXRoPjxwYXRoIGQ9Ik0yNjMuNTA2IDUxQzI2NC43MTcgNTEgMjY1LjgxMyA1MS40ODczIDI2Ni42MDYgNTIuMjY1OEEyNjcuMDUyIDUyLjc5ODcgMjY3LjU3MTkgNTMuNjI4MyAyOTAuMTg1IDkyLjE4MzEgMjkwLjU0NSA5Mi43OTk5IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA9Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTEuODA7MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzIFoiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Ocorreu um erro."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--sea-dark);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "A carregar");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .couple-names {
        font-size: 2.5rem;
        letter-spacing: 2px;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    .wedding-date {
        font-size: 1.5rem;
        letter-spacing: 4px;
        padding: 0 1rem;
    }

    .tagline {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .decorative-line {
        width: 150px;
    }

    /* Move scroll indicator higher on mobile to avoid browser UI */
    .scroll-indicator {
        bottom: 80px;
        font-size: 1.5rem;
    }
    
    .info-header h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .save-date-section h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .save-date-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .calendar-section-home {
        padding: 4rem 1rem;
    }

    .calendar-section-home h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .calendar-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .calendar-buttons-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .btn-calendar-home {
        padding: 1.5rem 1rem;
    }

    .calendar-icon-img-home {
        width: 60px;
        height: 60px;
    }
    
    .venue-section {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    /* Hide ring divider on mobile devices */
    .venue-divider {
        display: none;
    }
    
    .photo-row {
        flex-direction: column;
    }
    
    .photo-card, .photo-card.wide {
        max-width: 100%;
    }

    .information-container {
        padding: 2rem 1rem;
    }

    .venue-card {
        min-width: 100%;
    }

    .map-container iframe {
        height: 250px;
    }

    .map-link {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Extra small devices (iPhone SE, older phones) */
@media (max-width: 390px) {
    .couple-names {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .wedding-date {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Move scroll indicator even higher on very small screens */
    .scroll-indicator {
        bottom: 100px;
    }
}

.back-home {
    text-align: center;
    margin-top: 4rem;
}