/* src/css/eventDetails.css - UNIVERSAL MOBILE LOOK (LIGHT THEME ADAPTED) */

/* 1. RESET CONTAINER */
.event-details {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
    background-color: transparent !important; /* Dihapus dan dipindah ke calendar-card */
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    margin-bottom: 1rem;
    color: var(--main-text-color);
}

/* --- HEADER TEXT STYLES --- */
.eventdetails-header-container {
    text-align: center;
    margin-bottom: 1rem;
}

.eventdetails-title {
    font-family: var(--sacramento);
    font-size: 3.5rem;
    color: var(--heading-text-color); /* Merah Marun */
    margin-bottom: 1rem;
}

.eventdetails-description {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
    color: var(--main-text-color);
}

/* Responsif untuk layar kecil (HP) */
@media screen and (max-width: 768px) {
    .eventdetails-title {
        font-size: 2.8rem; 
    }
}

.event-details::before,
.event-details::after {
    display: none;
}

.calendar-card-scene {
    display: flex;
    justify-content: center;
    width: 100%;
}

.calendar-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

/* 2. KARTU UTAMA */
.calendar-card {
    width: 100%;
    background-color: var(--card-bg-color); /* Memakai warna Putih yang dipindah dari event-details */
    
    /* Border disesuaikan ke merah pudar, bukan emas lagi */
    border: 1px solid var(--border-color);
    
    display: block;
    overflow: hidden;
    position: relative;
    padding-bottom: 0;
    border-radius: 20px;
    min-height: 450px;
}

/* KONTEN ATAS */
.content-section {
    padding: 15px;
    position: relative;
    min-height: 350px;
    width: 100%;
}

/* --- FOTO DI KIRI (GAYA MOBILE) --- */
.internal-photo {
    position: absolute;
    top: 60%;
    left: 10px;
    transform: translateY(-50%);

    width: 160px;
    height: 75%;
    z-index: 5;

    border-radius: 80px 80px 10px 10px;
    
    /* Ganti border Emas ke Merah Marun */
    border: 3px solid var(--heading-text-color);
    
    /* Shadow disesuaikan */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    
    overflow: hidden;
    background: var(--heading-text-color);
}

.internal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- HEADER GANTUNG (GAYA MOBILE) --- */
.month-header {
    position: absolute;
    top: 0;
    right: 10px;

    background-color: var(--heading-text-color); /* Merah Marun */
    color: #fff;

    width: 100px;
    padding: 25px 5px;
    border-radius: 0 0 20px 20px;

    text-align: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.month-number {
    font-family: var(--heading-font, serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 0.9;
}

.month-name {
    font-family: var(--body-font, sans-serif);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 600;
}


/* --- WATERMARK TAHUN --- */
.year-bg {
    position: absolute;
    top: -30px;
    left: 5px;
    font-size: 10rem;
    font-weight: 900;
    
    /* Warna Tahun: Emas sangat transparan */
    color: rgba(212, 175, 55, 0.05);
    
    font-family: var(--heading-font, serif);
    pointer-events: none;
    z-index: 0;
}


/* --- KALENDER GRID --- */
.calendar-wrapper {
    z-index: 2;
    position: relative;
    margin-left: 165px;
    width: calc(100% - 165px);
    margin-top: 8.5rem;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    column-gap: 2px;
    row-gap: 8px;
}

/* Font Header Grid */
.calendar-grid-header div {
    font-size: 0.55rem;
    font-weight: 800;
    
    /* Warna Header Hari (Sen, Sel, dst) */
    color: var(--heading-text-color);
    
    text-transform: uppercase;
    opacity: 0.8;
}

/* Angka Tanggal */
.calendar-grid-body .day {
    font-size: 0.8rem;
    padding: 0;
    
    /* PENTING: Warna angka jadi gelap karena background terang */
    color: var(--main-text-color); 
    
    position: relative;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: auto;
}

.day.empty {
    visibility: hidden;
}

.day.wedding-day {
    color: #ffffff; /* Teks tanggal nikah jadi putih */
    font-weight: 900;
}

.day.wedding-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    
    /* Lingkaran penanda: Merah Aksen */
    background-color: var(--accent-color);
    
    /* Glow effect emas */
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    
    border-radius: 50%;
    z-index: -1;
}


/* --- COUNTDOWN --- */
.arch-flip-wrapper {
    margin-left: 0;
    width: 100%;
    margin-top: 0;
    padding: 1rem 0.5rem;
    background-color: transparent;
    
    /* Garis putus-putus emas pudar */
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--heading-text-color);
    margin-top: 10px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.flip-clock-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.flip-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-clock-label {
    margin-top: 4px;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--heading-text-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* KARTU FLIP */
.flip-card {
    position: relative;
    display: block;
    width: 3.5rem;
    height: 4.2rem;
    font-size: 2.2rem;
    line-height: 4.2rem !important;
    
    /* Warna angka di dalam flip card jadi PUTIH */
    color: #ffffff; 
    
    text-align: center;
    padding: 0 !important;
    border-radius: 8px;
}

.top,
.bottom,
.top-flip,
.bottom-flip {
    width: 100%;
    height: 50% !important;
    overflow: hidden;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Background kartu flip: Merah Gelap/Marun */
    background-color: var(--heading-text-color);
    
    /* Border halus */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top,
.top-flip {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* Garis tengah lipatan */
    line-height: 4.2rem !important;
}

.bottom,
.bottom-flip {
    border-radius: 0 0 8px 8px;
    line-height: 0 !important;
}

.top-flip {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom;
    animation: flip-top 0.3s ease-in;
}

.bottom-flip {
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: top;
    animation: flip-bottom 0.3s ease-out 0.3s;
    transform: rotateX(90deg);
}

@keyframes flip-top {
    100% {
        transform: rotateX(90deg);
    }
}

@keyframes flip-bottom {
    100% {
        transform: rotateX(0deg);
    }
}


/* TOMBOL */
.card-actions-outer {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    height: 50px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.1s;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* dark shadow */
}

.action-btn:active {
    transform: scale(0.96);
}

.map-btn {
    background-color: var(--heading-text-color);
    color: #ffffff;
    border: 1px solid transparent;
}

/* Tombol Save Date bisa dibuat variasi outline agar tidak monoton */
.save-btn {
    background-color: #ffffff;
    color: var(--heading-text-color);
    border: 1px solid var(--heading-text-color);
}
