/* Aslı & Kenan Botanical Cream & Gold Theme (Classic Pearl) */
:root {
    --bg-color: #f7f4ed;
    --card-bg: #fffdf9;
    --sage-green: #3d5646;   /* Deep Botanical Sage */
    --accent-sage: #5e7a69;
    --gold-color: #c9a456;    /* Warm Gold Foil */
    --gold-dark: #a88338;
    --text-color: #2b352e;
    --text-muted: #616e64;
    --font-script: 'Alex Brush', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
    --shadow-soft: 0 10px 30px rgba(61, 86, 70, 0.08);
    --shadow-card: 0 15px 40px rgba(61, 86, 70, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(var(--gold-color) 0.5px, transparent 0.5px);
    background-size: 28px 28px;
}

/* Floating Audio Control */
.music-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sage-green);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.disc-icon.playing {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3D ENVELOPE OVERLAY */
.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(43, 53, 46, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-wrapper {
    text-align: center;
    perspective: 1000px;
    max-width: 380px;
    width: 90vw;
}

.envelope {
    width: 100%;
    height: 250px;
    background: #f4eee0;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    border: 1.5px solid var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fffdf9 0%, #ede3ce 100%);
    padding: 15px;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #e2d5bd;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 0.6s ease;
    z-index: 2;
}

.wax-seal {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 3;
    animation: pulseSeal 2s infinite ease-in-out;
    background: #fff;
    padding: 2px;
    border: 2px solid var(--gold-color);
}

.seal-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes pulseSeal {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.envelope-text {
    margin-top: 18px;
    z-index: 3;
}

.invite-to {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--sage-green);
    font-weight: 600;
}

.invite-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.open-btn {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(201, 164, 86, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.envelope.opening .envelope-flap {
    transform: rotateX(180deg);
}

.envelope.opening .wax-seal {
    transform: scale(1.4);
    opacity: 0;
}

/* MAIN INVITATION CONTAINER */
.invitation-container {
    max-width: 620px;
    margin: 20px auto;
    padding: 40px 25px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--gold-color);
    outline: 1px solid var(--gold-color);
    outline-offset: -8px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.invitation-container.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* BOTANICAL ACCENTS */
.leaf-corner {
    position: absolute;
    width: 110px;
    height: 110px;
    opacity: 0.2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.leaf-top-left {
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%233d5646" d="M10,10 Q50,0 90,50 Q40,90 10,10 Z"/></svg>');
}

.leaf-bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%233d5646" d="M10,10 Q50,0 90,50 Q40,90 10,10 Z"/></svg>');
}

/* HEADER SECTION */
.header-section {
    margin-bottom: 30px;
}

.luxury-seal-wrapper {
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
}

.header-seal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 3px solid var(--gold-color);
}

.couple-names {
    font-family: var(--font-script);
    font-size: 3.8rem;
    color: var(--sage-green);
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.1;
}

.event-title-badge {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 4px;
    color: var(--sage-green);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.heart-symbol {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin: 0 4px;
}

.main-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
}

/* CARD BOX */
.card-box {
    background: #faf7f2;
    border: 1px stroke rgba(201, 164, 86, 0.3);
    border-radius: 12px;
    padding: 24px 18px;
    margin-bottom: 25px;
}

/* FAMILY SECTION */
.family-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.family-side {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--gold-color);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.parents-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--sage-green);
    font-weight: 600;
}

.family-surname {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-color);
    letter-spacing: 1px;
    margin-top: 2px;
}

.family-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-heart {
    color: var(--gold-color);
    font-size: 1rem;
}

/* EVENT MAIN CARD */
.event-header {
    margin-bottom: 20px;
}

.calendar-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(61, 86, 70, 0.08);
    color: var(--sage-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.event-date {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--sage-green);
    letter-spacing: 2px;
    font-weight: 700;
}

.event-time {
    font-size: 1.05rem;
    color: var(--gold-color);
    font-weight: 600;
    margin-top: 4px;
}

.location-box {
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(201, 164, 86, 0.4);
}

.pin-icon {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 4px;
}

.location-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold-color);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--sage-green);
    line-height: 1.3;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* COUNTDOWN */
.countdown-wrapper {
    background: #f4eee3;
    border-radius: 10px;
    padding: 14px 10px;
    margin-bottom: 22px;
    border: 1px stroke rgba(201, 164, 86, 0.4);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sage-green);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.time-block span {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sage-green);
    line-height: 1;
}

.time-block label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* BUTTONS */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    width: 100%;
    min-height: 44px;
}

.btn-primary {
    background: var(--sage-green);
    color: #ffffff;
}

.btn-secondary {
    background: #333333;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold-color);
    color: var(--gold-color);
}

/* FOOTER */
.footer-section {
    margin-top: 30px;
    border-top: 1px stroke #eee;
    padding-top: 25px;
}

.share-box {
    background: #faf7f2;
    border: 1px dashed var(--gold-color);
    border-radius: 12px;
    padding: 20px 15px;
    margin-bottom: 25px;
}

.share-box h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--sage-green);
    margin-bottom: 4px;
}

.share-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-share {
    padding: 12px 20px;
    border-radius: 30px;
}

.btn-wa-share {
    background: #25D366;
    color: #fff;
}

.btn-copy {
    background: var(--gold-color);
    color: #fff;
}

.brand-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.platform-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--sage-green);
    text-decoration: none;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--sage-green);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (min-width: 601px) {
    .couple-names { font-size: 4.5rem; }
    .invitation-container { margin: 40px auto; padding: 45px 35px; }
    .card-actions { flex-direction: row; }
    .card-actions .btn { flex: 1; }
    .share-buttons { flex-direction: row; justify-content: center; }
    .share-buttons .btn { width: auto; }
}
