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

body {
    font-family: 'Nanum Myeongjo', serif;
    line-height: 1.6;
    color: #4B3A2F;
    background-color: #FAF9F6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 50px;
    height: 1px;
    background-color: #4B3A2F;
    opacity: 0.3;
    transform: translateX(-50%);
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: center;
}

/* Layout */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('photos/PH401526_ps 1 Edited.jpg') center bottom/cover;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #FAF9F6;
    padding-bottom: 4rem;
}

.hero h1, .hero h2, .hero h3, .hero p, .hero blockquote {
    color: #FAF9F6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h3 {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.hero h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 50px;
    height: 1px;
    background-color: #FAF9F6;
    opacity: 0.3;
    transform: translateX(-50%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.bible-verse {
    font-style: italic;
    margin: 2rem 0;
    line-height: 1.8;
}

.bible-verse cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: #FAF9F6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Blessing Section */
.blessing {
    background-color: #F2F2F2;
}

/* Family Introduction */
.family-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

/* Wedding Details */
.wedding-details {
    background-color: #F2F2F2;
}

/* Calendar */
.calendar {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background-color: #F7E6E6;
    padding: 1rem;
    font-weight: bold;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 1rem;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #4B3A2F;
}

.calendar-date {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #4B3A2F;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.calendar-date.empty {
    visibility: hidden;
}

.calendar-date.highlight {
    background-color: #F7E6E6;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Make Sunday red */
.calendar-grid .calendar-date:nth-child(7n + 1) {
    color: #ff6b6b;
}

/* Make Saturday blue */
.calendar-grid .calendar-date:nth-child(7n) {
    color: #4dabf7;
}

.location-button-container {
    display: flex;
    justify-content: center;
    margin: 1rem auto 2rem;
}

.location-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #F7E6E6;
    color: #4B3A2F;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
    text-align: center;
}

.location-button:hover {
    transform: translateY(-2px);
}

/* Gallery */
.gallery {
    background-color: #FAF9F6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Account Info */
.account-info {
    background-color: #F2F2F2;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.account-column {
    width: 100%;
}

.account-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--ivory);
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.bank-name {
    color: var(--deep-brown);
    font-size: 0.9rem;
    text-align: center;
}

.account-holder {
    font-weight: 600;
    color: var(--deep-brown);
    text-align: center;
}

.account-column h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.dropdown-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--ivory);
    border: 1px solid var(--deep-brown);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.dropdown-button span {
    text-align: center;
    color: var(--deep-brown);
}

.dropdown-button:hover {
    background-color: #e6d6d6;
}

.dropdown-button h4 {
    margin: 0;
    color: #4B3A2F;
}

.dropdown-arrow {
    color: #4B3A2F;
    transition: transform 0.3s ease;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

.dropdown-button.active + .dropdown-content {
    max-height: 500px;
}

/* Contact Section */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-button {
    padding: 1rem 2rem;
    background-color: #F7E6E6;
    color: #4B3A2F;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #F2F2F2;
}

/* Copy Link Section */
.copy-link-container {
    text-align: center;
    margin: 2rem auto;
    position: relative;
}

.share-buttons {
    margin-top: 1rem;
}

.show-url-checkbox {
    display: none;
}

.copy-link-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #F7E6E6;
    color: #4B3A2F;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.1rem;
}

.copy-link-button:hover {
    transform: translateY(-2px);
    background-color: #e6d6d6;
}

.kakao-share-button {
    display: none;
    padding: 1rem 2rem;
    background-color: #FEE500;
    color: #3A292D;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.kakao-share-button:hover {
    transform: translateY(-2px);
    background-color: #FFE000;
}

.url-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.url-popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 500px;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.url-popup p {
    margin-bottom: 1rem;
    color: #4B3A2F;
}

.url-display {
    background-color: #F2F2F2;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-all;
    user-select: all;
    cursor: text;
}

.close-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #F7E6E6;
    color: #4B3A2F;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.close-button:hover {
    background-color: #e6d6d6;
}

.show-url-checkbox:checked ~ .url-popup {
    opacity: 1;
    visibility: visible;
}

.show-url-checkbox:checked ~ .url-popup .url-popup-content {
    transform: scale(1);
}

/* Map Container */
.map-container {
    margin: 1rem auto 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 700px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .family-intro {
        grid-template-columns: 1fr;
    }

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

    .contact-buttons {
        flex-direction: column;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .copy-link-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .kakao-share-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .url-popup-content {
        padding: 1.5rem;
        width: 90%;
    }

    .url-display {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .hero {
        background-position: center 70%;
    }

    .hero-content {
        padding-bottom: 4rem;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .map-container {
        margin: 1rem 0;
        max-width: 100%;
    }

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

    .address {
        font-size: 0.9rem;
    }

    .account-detail {
        padding: 0.8rem;
    }
}

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

section {
    animation: fadeIn 1s ease-out;
}

.location {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.address {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.english-version-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    padding: 0 1rem;
}

.english-version-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #F7E6E6;
    color: #4B3A2F;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #F7E6E6;
}

.english-version-button:hover {
    background-color: transparent;
    color: #4B3A2F;
    border-color: #4B3A2F;
}

/* Livestream Info Section */
.livestream-info {
    background-color: #F7E6E6;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.livestream-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #4B3A2F;
}

.livestream-info h3::after {
    width: 80px;
    height: 2px;
    background-color: #4B3A2F;
    opacity: 0.5;
}

.livestream-info p {
    margin-bottom: 1.5rem;
    color: #4B3A2F;
    font-size: 1.1rem;
    line-height: 1.8;
}

.livestream-button-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem auto 0;
}

.livestream-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: transparent;
    color: #4B3A2F;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #4B3A2F;
    font-size: 1.1rem;
}

.livestream-button:hover {
    background-color: #4B3A2F;
    color: #F7E6E6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 