@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* === VARIABLES & RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 2em 1em;
}

h1, h2, h3, h4 {
    margin: 0.5em 0;
    font-weight: 600;
}

.iconic {
    font-family: 'Dancing Script', cursive;
    font-size: 2em;
}

.iconic1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
}

/* === MAIN LAYOUT === */
.tab-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tab-sidebar {
    width: 150px;
    padding: 20px 0;
}

.tab-btn {
    display: block;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: #ecf0f1;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: transparent;
    color: #fff;
}

.tab-btn.active::before {
    content: '→';
    position: absolute;
    right: 20px;
}

.tab-content {
    flex: 1;
    padding: 30px;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-title {
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #fff;
}

.content-text {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #fff;
}

/* === CONTENT COMPONENTS === */
.container {
    max-width: 920px;
    min-height: 100vh;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #fff;
    padding: 1em 0;
}

.center {
    text-align: center;
}

.area1, .area2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2em;
    margin: 2em;
}

.area-card {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    border-radius: 10px;
    color: #fff;
}

.area-card img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#countdown {
    display: flex;
    gap: 1em;
    text-align: center;
    justify-content: space-around;
}

.countdown-number {
    font-size: 1.5em;
    font-weight: 700;
}

.map-lokasi {
    width: 100%;
    height: 250px;
    border: 1px solid #fff;
    padding: 1em;
    border-radius: 15px;
}

.border {
    border: 1px solid #fff;
}

.preview {
    position: absolute;
    top: 0;
    z-index: 999;
    width: 100%;
    text-align: center;
    padding: 2px;
    background: #58151c;
    color: #fff;
}

.guest-name-display {
    padding: 5px 0;
    display: inline-block;
    font-weight: 600;
    font-size: 1.5em;
}

/* === GALLERY === */
.gallery-slideshow {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.gallery-slideshow .slide {
    display: none;
    animation: fadeIn 0.8s;
}

.gallery-slideshow .slide img {
    width: 100%;
    vertical-align: middle;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-slideshow .prev-btn,
.gallery-slideshow .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.gallery-slideshow .prev-btn:hover,
.gallery-slideshow .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-slideshow .next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.gallery-slideshow .prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* === PAYMENT INFO === */
.rekening-info {
    padding: 15px;
    border-radius: 15px;
    margin: 1.5rem 0;
    line-height: 1.5;
    border: 1px solid #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rekening-info h3 {
    font-size: 2em;
    font-family: monospace;
}

.qris-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem 0;
}

.qris-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qris-item img {
    max-width: 120px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 5px;
}

.qris-item span {
    margin-top: 10px;
    font-weight: bold;
}

/* === RSVP FORM === */
.rsvp-form {
    margin: auto;
    text-align: left;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    background-color: white;
}

.rsvp-form button {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

.rsvp-form button:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #25fc8f 100%);
}

.ucapan-isi {
    border-top: 1px dashed #fff;
    margin: 10px 0;
    padding: 5px;
    color: pink;
    font-size: .95em;
}
/* === MUSIC PLAYER === */
#music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(43, 42, 76, 0.8);
    border: 2px solid #F4D160;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#music-button:hover {
    transform: scale(1.1);
}

#music-button.playing::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-left: 5px solid #F4D160;
    border-right: 5px solid #F4D160;
    box-sizing: border-box;
}

#music-button.paused::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #F4D160;
    margin-left: 5px;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 2em 0;
    border-top: 1px solid #ddd;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .area1, .area2 {
        margin: 1em .5em;
    }
    .area-card{
        padding: 1em;
    }
    .tab-container {
        flex-direction: column;
    }
    
    .tab-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .tab-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .tab-btn.active {
        border-left: none;
        border-bottom: 4px solid #fff;
    }
    
    .tab-btn.active::before {
        display: none;
    }
}