/* ===== RESPONSIVE DESIGN ===== */

/* Desktop large screens (1200px+) */
@media (min-width: 1200px) {
    .couple-container,
    .events-container,
    .streaming-container,
    .gift-container {
        max-width: 1100px;
    }

    .gallery-grid {
        max-width: 1200px;
    }

    .wishes-container {
        max-width: 1300px;
    }
}

/* Tablet and below */
@media (max-width: 992px) {
    /* Wishes - stack on tablet */
    .wishes-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .wishes-form,
    .wishes-list-container {
        height: auto;
        min-height: 400px;
    }

    .wishes-list {
        max-height: 400px;
    }

    /* Gift container - stack on tablet */
    .gift-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gift-message,
    .gift-details {
        animation: none;
    }

    .gift-message .section-title {
        text-align: center;
    }

    /* Streaming container - stack on tablet */
    .streaming-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .streaming-content {
        animation: none;
    }

    .streaming-photo {
        animation: none;
        margin: 0 auto;
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    .couple-container,
    .events-container,
    .streaming-container,
    .gift-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Keep hero 100vh (full-screen intro), but let every other section
       size itself naturally to its content on mobile. Premium scroll-snap
       (which forces 100vh on all sections) is disabled on mobile via JS,
       so sections must be free to grow taller than the viewport. */
    .hero {
        height: 100vh;
        min-height: 100vh;
    }

    .couple-profile,
    .event-details,
    .gallery-section,
    .send-wishes,
    .send-gift,
    .footer {
        height: auto;
        min-height: auto;
    }

    /* Hero decorations - scale down on mobile */
    .javanese-decoration {
        font-size: 24px;
    }

    .javanese-decoration.top-left {
        top: 20px;
        left: 15px;
    }

    .javanese-decoration.top-right {
        top: 20px;
        right: 15px;
    }

    .javanese-decoration.bottom-left {
        bottom: 80px;
        left: 15px;
    }

    .javanese-decoration.bottom-right {
        bottom: 80px;
        right: 15px;
    }

    .javanese-border {
        inset: 20px;
    }

    .couple-names {
        font-size: clamp(24px, 6.5vw, 32px);
        padding: 12px 18px;
        letter-spacing: 1px;
    }

    .couple-names::before,
    .couple-names::after {
        font-size: 16px;
    }

    .couple-names span {
        font-size: clamp(28px, 8vw, 40px);
        margin: 6px 0;
    }

    .wedding-date-text {
        font-size: clamp(12px, 3.5vw, 16px);
        padding: 8px 15px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 65px;
        padding: 15px 20px;
    }

    .countdown-value {
        font-size: 28px;
    }

    .profile-photo,
    .streaming-photo {
        width: 200px;
        height: 200px;
    }

    .hero-photo {
        width: 150px;
        height: 150px;
    }

    .sticky-nav {
        max-width: 100%;
        padding: 12px 15px;
        gap: 12px;
        border-radius: 0;
        justify-content: space-around;
    }

    .nav-item {
        font-size: 18px;
    }

    .music-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .streaming-content,
    .gift-message,
    .gift-details {
        animation: none;
    }

    .profile-card:nth-child(2) {
        animation: none;
    }

    /* Couple container - stack on mobile */
    .couple-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .profile-card {
        animation: none;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    /* Events container - stack on mobile */
    .events-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .event-card {
        animation: none;
    }

    /* Wishes section - stack vertically on mobile */
    .wishes-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .wishes-form {
        padding: 25px 20px;
    }

    .wishes-form .section-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .wishes-list-container {
        padding: 25px 20px;
        min-height: 400px;
        max-height: 500px;
    }

    .wishes-list-header {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .wish-card {
        padding: 20px 22px;
    }

    .wish-name {
        font-size: 17px;
    }

    .wish-divider {
        width: 40px;
        margin: 12px 0 14px;
    }

    .wish-message {
        font-size: 13px;
        line-height: 1.8;
    }

    /* Lightbox - larger touch targets on mobile */
    .lightbox-nav {
        padding: 16px 14px;
        font-size: 26px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 30px;
        width: 46px;
        height: 46px;
    }

    .lightbox-counter {
        font-size: 13px;
        padding: 6px 16px;
        bottom: 20px;
    }

    /* Gift section mobile */
    .send-gift .section-title {
        text-align: center;
    }

    .gift-method-selector {
        width: 100%;
    }

    .bank-details {
        padding: 20px;
    }

    /* Footer mobile */
    .footer {
        padding: 60px 15px 120px;
    }

    .footer-thank-you {
        font-size: 36px;
    }

    .footer-couple-names {
        font-size: 22px;
    }

    .footer-quran-quote {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    section {
        padding: 60px 15px;
    }

    /* Keep hero 100vh for scroll snap */
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 20px 15px;
    }

    /* Hero decorations - smaller on small mobile */
    .javanese-decoration {
        font-size: 18px;
    }

    .javanese-decoration.top-left {
        top: 15px;
        left: 10px;
    }

    .javanese-decoration.top-right {
        top: 15px;
        right: 10px;
    }

    .javanese-decoration.bottom-left {
        bottom: 90px;
        left: 10px;
    }

    .javanese-decoration.bottom-right {
        bottom: 90px;
        right: 10px;
    }

    .javanese-border {
        inset: 15px;
    }

    .couple-names {
        font-size: clamp(22px, 6vw, 28px);
        padding: 10px 15px;
        letter-spacing: 0.5px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .couple-names::before,
    .couple-names::after {
        font-size: 14px;
    }

    .couple-names span {
        font-size: clamp(24px, 7vw, 32px);
        margin: 5px 0;
    }

    .wedding-date-text {
        font-size: clamp(11px, 3vw, 14px);
        padding: 6px 12px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px 15px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .envelope-couple-names {
        font-size: 32px;
    }

    .envelope-modal h2 {
        font-size: 36px;
    }

    .envelope-icon {
        font-size: 60px;
    }

    .profile-name,
    .streaming-title,
    .send-gift .section-title {
        font-size: 24px;
    }

    .profile-photo,
    .streaming-photo {
        width: 160px;
        height: 160px;
    }

    .event-title {
        font-size: 20px;
    }

    .event-card {
        padding: 30px 20px;
    }

    .filter-title {
        font-size: 24px;
    }

    .footer-thank-you {
        font-size: 32px;
    }

    .footer-couple-names {
        font-size: 20px;
    }

    .footer-hashtag {
        font-size: 16px;
    }

    .wishes-form {
        padding: 25px 15px;
    }

    .wishes-list-container {
        min-height: 350px;
    }

    .wish-card {
        padding: 18px 20px;
    }

    .wish-name {
        font-size: 16px;
    }

    .sticky-nav {
        gap: 8px;
        padding: 10px 8px;
    }

    .nav-item {
        font-size: 16px;
    }

    /* Lightbox - even larger touch targets on small mobile */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 26px;
        width: 42px;
        height: 42px;
    }

    .lightbox-nav {
        padding: 14px 12px;
        font-size: 22px;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 5px 14px;
        bottom: 14px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    /* Gift section small mobile */
    .gift-method-selector {
        font-size: 14px;
        padding: 12px 16px;
    }

    .bank-details {
        padding: 18px 15px;
    }

    .bank-value {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .copy-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Footer small mobile */
    .footer {
        padding: 50px 12px 110px;
    }

    .footer-thank-you {
        font-size: 28px;
    }

    .footer-couple-names {
        font-size: 18px;
    }

    .footer-decoration {
        font-size: 28px;
    }

    .footer-quran-quote {
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .couple-names {
        font-size: 20px;
        padding: 8px 12px;
        letter-spacing: 0.3px;
    }

    .couple-names::before,
    .couple-names::after {
        display: none;
    }

    .couple-names span {
        font-size: 22px;
        margin: 4px 0;
    }

    .wedding-date-text {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hero {
        padding: 15px 10px;
    }

    .javanese-decoration {
        font-size: 16px;
    }

    .javanese-decoration.top-left {
        top: 10px;
        left: 8px;
    }

    .javanese-decoration.top-right {
        top: 10px;
        right: 8px;
    }

    .javanese-decoration.bottom-left {
        bottom: 100px;
        left: 8px;
    }

    .javanese-decoration.bottom-right {
        bottom: 100px;
        right: 8px;
    }

    .javanese-border {
        inset: 12px;
    }

    .countdown {
        gap: 6px;
    }

    .countdown-item {
        min-width: 50px;
        padding: 8px 10px;
    }

    .countdown-value {
        font-size: 20px;
    }

    .countdown-label {
        font-size: 9px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 12px;
    }

    .profile-photo,
    .streaming-photo {
        width: 140px;
        height: 140px;
    }

    .sticky-nav {
        padding: 8px 5px;
        gap: 5px;
    }

    .nav-item {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .wishes-form,
    .wishes-list-container {
        padding: 20px 12px;
    }

    .wish-card {
        padding: 15px 18px;
    }

    .gallery-grid {
        gap: 8px;
        padding: 8px 6% 14px;
        scroll-padding-inline: 6%;
    }

    .gallery-item {
        flex: 0 0 86%;
    }

    .gallery-section {
        padding: 35px 0;
    }

    .lightbox-nav {
        padding: 12px 10px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        font-size: 24px;
        width: 38px;
        height: 38px;
    }

    .footer {
        padding: 45px 10px 100px;
    }

    .footer-thank-you {
        font-size: 26px;
    }

    .footer-couple-names {
        font-size: 16px;
    }
}
