/* ======================================================================================================
=================================== CALENDER START ======================================================
====================================================================================================== */

/* --- FONT --- */
@font-face {
    font-family: 'KGShakeitOff';
    src: url('assets/fonts/KGShakeitOff.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- SECTION STYLES --- */
.kids-calendar-section {
    background-color: #4c3c83;
    color: #ffffff;
    position: relative;
    padding: 40px 20px; 
    min-height: 500px; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* SCROLL FIX */
    scroll-margin-top: 100px;
}

/* --- FLOATING CHARACTERS --- */
.floating-char {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    font-family: monospace;
    animation: floatAnim linear infinite;
}

.f1 { font-size: 100px; top: 10%; left: 5%; animation-duration: 25s; }
.f2 { font-size: 150px; bottom: 10%; right: 5%; animation-duration: 30s; animation-direction: reverse; }
.f3 { font-size: 80px; top: 20%; right: 20%; animation-duration: 20s; }
.f4 { font-size: 120px; bottom: 20%; left: 15%; animation-duration: 28s; }
.f5 { font-size: 60px; top: 50%; left: 50%; animation-duration: 22s; animation-delay: -5s; }

@keyframes floatAnim {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -40px) rotate(10deg); }
    66% { transform: translate(-20px, 30px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- WRAPPER --- */
.cal-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 30px; 
    flex-wrap: wrap;
    align-items: center;
}

/* --- LEFT PANEL --- */
.left-info-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    font-family: 'KGShakeitOff', 'Comic Sans MS', cursive;
}

.event-detail-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 26px;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-meta {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    font-weight: bold;
}

.card-desc {
    font-size: 16px;
    line-height: 1.5;
}

/* --- RIGHT PANEL --- */
.right-cal-panel {
    flex: 1;
    min-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cal-title {
    font-size: 24px;
    font-weight: bold;
    color: #4c3c83;
    font-family: 'KGShakeitOff', 'Comic Sans MS', cursive;
}

.nav-btn {
    background: #4c3c83;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn:hover { background: #6a5acd; }

.legend {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 18px;
    font-family: 'KGShakeitOff', 'Comic Sans MS', cursive; 
    color: #555;
}
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; position: relative; top: 1px;}
.dot.y { background: #ffd700; }
.dot.p { background: #ff6b6b; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.day-label {
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
    font-size: 13px;
}

.date-cell {
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    margin: auto;
    transition: 0.2s;
    font-size: 14px;
}

.date-cell:hover { background-color: #eee; }
.date-cell.empty { background: transparent; cursor: default; }

.date-cell.event { background-color: #ffd700; color: #4c3c83; }
.date-cell.holiday { background-color: #ff6b6b; color: white; }
.date-cell.active-selected { border: 3px solid #4c3c83; transform: scale(1.1); }

.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
    font-size: 12px;
    transition: opacity 0.3s;
    pointer-events: none;
}
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.date-cell:hover .tooltip { visibility: visible; opacity: 1; }

@media (max-width: 768px) {
    .cal-wrapper { flex-direction: column; gap: 20px; }
    .main-title { font-size: 28px; text-align: center; }
}

/* --- FLOATING BUTTON --- */
.floating-cal-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #4c3c83;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(76, 60, 131, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: btn-float 3s ease-in-out infinite;
}

.floating-cal-btn svg {
    width: 30px;
    height: 30px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.cal-star {
    transform-origin: center;
    animation: star-twinkle 1.5s infinite alternate ease-in-out;
}

.floating-cal-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #4c3c83;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: pulse-ring 2s infinite;
}

.floating-cal-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #5d4a9e;
}
.floating-cal-btn:hover svg { transform: scale(1.1); }

@keyframes btn-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes star-twinkle {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}
/* ======================================================================================================
=================================== CALENDER END ========================================================
====================================================================================================== */