/* 
   ASYLAYIM'S TILASHAR TOYI - CLASSIC TRADITIONAL STYLE INVITATION
   Custom Premium Stylesheet (Vanilla CSS)
*/

:root {
    --chalkboard-green: #1E4620;
    --wooden-brown: #795548;
    --paper-cream: #FAF6EE;
    --dark-gold: #C5A86B;
    --text-charcoal: #2C3E50;
    --soft-border: #E8DCC4;
    --white: #FFFFFF;
    --green-accent: #27AE60;
    --red-accent: #C0392B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--chalkboard-green);
    /* Subtle chalk-drawn doodles on the side margins */
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--text-charcoal);
    min-height: 100vh;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Style Switcher */
.style-toggle-container {
    margin-bottom: 20px;
    z-index: 100;
}

.style-toggle-btn {
    display: inline-block;
    background-color: var(--wooden-brown);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    border: 2px solid var(--dark-gold);
    transition: transform 0.2s, background-color 0.2s;
}

.style-toggle-btn:hover {
    transform: scale(1.05);
    background-color: #5D4037;
}

/* Page Wrapper simulating Pinterest mockup */
.classic-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    justify-content: center;
}

/* Central Invitation Card */
.main-card {
    background-color: var(--paper-cream);
    background-image: 
        radial-gradient(rgba(224, 203, 172, 0.15) 1px, transparent 0),
        radial-gradient(rgba(224, 203, 172, 0.15) 1px, transparent 0);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    width: 100%;
    max-width: 580px;
    border: 10px solid var(--wooden-brown);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
    padding: 30px 20px;
    position: relative;
}

/* Top Chalkboard Design */
.top-board-container {
    width: 100%;
    margin-bottom: 25px;
}

.wooden-frame {
    background-color: #5D4037;
    border: 8px solid var(--wooden-brown);
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.15);
    padding: 6px;
}

.chalkboard {
    background-color: #2E5A30;
    border-radius: 6px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Soft chalkboard texture */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 4px;
}

.board-drawings {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 8px;
    left: 0;
    padding: 0 15px;
    opacity: 0.85;
}

.draw-item {
    font-size: 22px;
}

.child-name {
    font-family: 'Marck Script', cursive;
    color: #F1C40F; /* Golden-yellow chalk text */
    font-size: 3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Calligraphy Titles */
.invitation-title-box {
    text-align: center;
    margin-bottom: 25px;
}

.calligraphy-title {
    font-family: 'Marck Script', cursive;
    color: var(--chalkboard-green);
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.1;
}

.title-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #555555;
    margin-top: -5px;
}

/* Central Portrait Frame */
.portrait-container {
    width: 220px;
    height: 290px;
    margin: 0 auto 30px;
    border: 5px solid var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    background: var(--white);
    overflow: visible;
}

.child-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.portrait-decor {
    position: absolute;
    background-color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-weight: 700;
}

.decoration-bell {
    bottom: -15px;
    left: -15px;
}

.decoration-num {
    top: -15px;
    right: -15px;
    color: var(--red-accent);
    font-family: 'Cormorant Garamond', serif;
}

/* Welcome Text */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #444;
}

.welcome-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #4A4A4A;
}

.gold-divider {
    color: var(--dark-gold);
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Details Section */
.details-section {
    margin-bottom: 30px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--chalkboard-green);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-card {
    flex: 1 1 calc(50% - 8px);
    background: var(--white);
    border: 2px solid var(--soft-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.detail-card.full-width {
    flex: 1 1 100%;
}

.detail-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
}

.detail-sub-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--chalkboard-green);
    margin-top: 3px;
}

/* Navigation Box */
.navigation-box {
    text-align: center;
    margin-bottom: 30px;
}

.navigation-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.nav-btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 48%;
    max-width: 200px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.google-btn {
    background-color: #4A90E2;
}

.twogis-btn {
    background-color: #27AE60;
}

/* RSVP Form Section */
.rsvp-section {
    background: var(--white);
    border: 2px solid var(--soft-border);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
}

.rsvp-sub {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.classic-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
}

.classic-input, .classic-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--soft-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-charcoal);
    background-color: var(--paper-cream);
    transition: border-color 0.2s;
}

.classic-input:focus, .classic-textarea:focus {
    outline: none;
    border-color: var(--dark-gold);
}

.radio-options {
    display: flex;
    gap: 15px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    border: 2px solid var(--soft-border);
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--paper-cream);
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-label:has(input:checked) {
    background-color: var(--white);
    border-color: var(--dark-gold);
}

.radio-label input {
    accent-color: var(--dark-gold);
}

.radio-text {
    font-size: 0.9rem;
    font-weight: 700;
}

.submit-btn {
    background-color: var(--chalkboard-green);
    color: var(--white);
    border: 2px solid var(--dark-gold);
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
}

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

/* Success box */
.success-box {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.success-box h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--chalkboard-green);
    margin-bottom: 8px;
}

.success-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.reset-btn {
    background: none;
    border: 2px solid var(--soft-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    transition: all 0.2s;
}

.reset-btn:hover {
    border-color: var(--dark-gold);
    color: var(--dark-gold);
}

.hidden {
    display: none !important;
}

/* Footer signatures */
.classic-footer {
    text-align: center;
    padding-top: 10px;
    margin-top: 20px;
}

.footer-hosts {
    margin-bottom: 15px;
}

.host-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-weight: 700;
}

.host-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--chalkboard-green);
}

.footer-copyright {
    font-size: 0.75rem;
    color: #999;
}

/* Desktop Margins and Responsive design */
.side-margin {
    display: none;
}

@media(min-width: 768px) {
    body {
        padding: 40px 20px;
    }
    
    .classic-wrapper {
        gap: 20px;
    }

    .main-card {
        padding: 40px 30px;
    }

    .detail-card {
        padding: 20px;
    }
}

/* Floating Music Toggle Button */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--paper-cream);
    border: 3.5px solid var(--dark-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.music-btn:hover {
    transform: scale(1.05);
    background-color: var(--white);
}

.speaker-icon {
    font-size: 18px;
}

.music-wave {
    display: none;
    align-items: flex-end;
    justify-content: space-between;
    width: 18px;
    height: 12px;
    position: absolute;
    bottom: 8px;
}

.music-btn.playing .music-wave {
    display: flex;
}

.music-wave span {
    width: 2.5px;
    height: 100%;
    background-color: var(--dark-gold);
    border-radius: 3px;
    animation: bounce-wave-classic 1.2s ease-in-out infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.15s; }
.music-wave span:nth-child(3) { animation-delay: 0.3s; }
.music-wave span:nth-child(4) { animation-delay: 0.45s; }

@keyframes bounce-wave-classic {
    0% { height: 20%; }
    100% { height: 100%; }
}
