/* ===== Music Theme ===== */
:root {
    --music-color:    rgba(255, 64, 129, 0.25);
    --music-text:     #ff80ab;
    --music-gradient: linear-gradient(45deg, #ff4081, #e040fb);
    --music-progress: linear-gradient(90deg, #ff4081, #e040fb);
    --music-shadow:   rgba(255, 64, 129, 0.4);
    --music-thumb:    #ff4081;
    --music-hover:    #ff4081;
}

/* ===== Background ===== */
body {
    background: linear-gradient(135deg, #0a0000, #1a0008, #0d0011, #0a0a1a);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Stars ===== */
.stars-cal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star-cal {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkleCal ease-in-out infinite;
}

@keyframes twinkleCal {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.3); }
}

/* ===== Calendar Hero ===== */
.cal-hero {
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 50px;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(255, 64, 129, 0.08), transparent 70%);
}

.cal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: calFloat 3s ease-in-out infinite;
}

@keyframes calFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.cal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    background: linear-gradient(45deg, #ff4081, #ff80ab, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.cal-sub {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #ff80ab;
}

/* ===== Calendar Section ===== */
.calendar-section {
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

/* Calendar Navigation */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.cal-nav-btn {
    background: rgba(255, 64, 129, 0.1);
    border: 1px solid rgba(255, 64, 129, 0.3);
    color: #ff4081;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: #ff4081;
    color: #fff;
    transform: scale(1.1);
}

.cal-month-year {
    text-align: center;
}

.cal-month-year h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff80ab;
    line-height: 1;
}

.cal-month-year span {
    color: #aaa;
    font-size: 1rem;
}

/* Days Header */
.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 700px;
    margin: 0 auto 10px;
    text-align: center;
}

.cal-days-header div {
    color: #ff80ab;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
}

/* Calendar Grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 700px;
    margin: 0 auto;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #ccc;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    flex-direction: column;
    gap: 2px;
}

.cal-day.empty {
    background: transparent;
}

.cal-day.normal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-day.normal:hover {
    background: rgba(255, 64, 129, 0.08);
    border-color: rgba(255, 64, 129, 0.2);
}

/* Today */
.cal-day.today {
    background: rgba(255, 64, 129, 0.15);
    border: 2px solid #ff4081;
    color: #ff4081;
    font-weight: 700;
}

/* Special Day */
.cal-day.special {
    background: linear-gradient(145deg, rgba(255, 64, 129, 0.2), rgba(224, 64, 251, 0.2));
    border: 2px solid #ff4081;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.3);
    animation: specialPulse 2s ease-in-out infinite;
}

@keyframes specialPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 64, 129, 0.3); }
    50%       { box-shadow: 0 0 20px rgba(255, 64, 129, 0.5); }
}

.cal-day.special:hover {
    transform: scale(1.1);
    z-index: 2;
}

.cal-day .day-num {
    font-size: 0.9rem;
    line-height: 1;
}

.cal-day .day-icon {
    font-size: 0.75rem;
    line-height: 1;
}

/* ===== Event Popup ===== */
.event-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-popup-content {
    background: linear-gradient(145deg, rgba(255, 64, 129, 0.1), rgba(0, 0, 0, 0.9));
    border: 2px solid rgba(255, 64, 129, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 15px; right: 20px;
    background: rgba(255, 64, 129, 0.2);
    border: none;
    color: #fff;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #ff4081;
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.popup-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff80ab;
    margin-bottom: 8px;
}

.popup-date {
    color: #ff4081;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.popup-desc {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.popup-days {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #ff80ab;
    padding: 10px 20px;
    background: rgba(255, 64, 129, 0.1);
    border-radius: 50px;
    display: inline-block;
}

/* ===== Dates List ===== */
.dates-list-section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.dates-list {
    max-width: 800px;
    margin: 0 auto;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: rgba(255, 64, 129, 0.05);
    border: 1px solid rgba(255, 64, 129, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateX(-20px);
}

.date-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.date-item:hover {
    background: rgba(255, 64, 129, 0.1);
    border-color: rgba(255, 64, 129, 0.3);
    transform: translateX(8px);
}

.date-item-icon {
    font-size: 2.5rem;
    min-width: 50px;
    text-align: center;
}

.date-item-info {
    flex: 1;
}

.date-item-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #ff80ab;
    margin-bottom: 3px;
}

.date-item-date {
    color: #aaa;
    font-size: 0.85rem;
}

.date-item-days {
    font-size: 0.8rem;
    color: #ff4081;
    text-align: right;
    font-weight: 600;
    min-width: 80px;
}

/* ===== Upcoming Section ===== */
.upcoming-section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.upcoming-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 64, 129, 0.1), rgba(0, 0, 0, 0.5));
    border: 2px solid rgba(255, 64, 129, 0.25);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upcoming-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: upcomingBounce 2s ease-in-out infinite;
}

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

.upcoming-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff80ab;
    margin-bottom: 8px;
}

.upcoming-date {
    color: #ff4081;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.upcoming-countdown {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff4081;
    padding: 12px 25px;
    background: rgba(255, 64, 129, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 64, 129, 0.2);
    margin-bottom: 20px;
    display: inline-block;
}

.upcoming-desc {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cal-title   { font-size: 3rem; }
    .cal-grid,
    .cal-days-header { gap: 3px; }
    .cal-day     { font-size: 0.8rem; border-radius: 8px; }
    .cal-day .day-icon { font-size: 0.65rem; }
    .event-popup-content { padding: 40px 25px; }
    .date-item   { padding: 15px 18px; gap: 12px; }
    .upcoming-card { padding: 35px 25px; }
}

@media (max-width: 480px) {
    .cal-title   { font-size: 2.5rem; }
    .cal-day     { font-size: 0.7rem; }
    .cal-day .day-icon { display: none; }
    .cal-days-header div { font-size: 0.65rem; }
}