/* Kalender Page Specific Styles */
.kalender-page {
    background: linear-gradient(to bottom right, #0a1f13, #0d2a18, #0a1f13);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.kalender-main {
    flex: 1;
    padding-bottom: 5rem;
}

/* Header Section */
.kalender-header-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .kalender-header-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .kalender-header-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .kalender-header-section {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.kalender-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    font-style: italic;
    color: #FFFAE3;
    text-align: center;
}

@media (min-width: 640px) {
    .kalender-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .kalender-title {
        font-size: 3rem;
        line-height: 1;
    }
}

.kalender-desc {
    color: #d1d5db; /* gray-300 */
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-align: center;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .kalender-desc {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Year Nav */
.year-nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.year-nav-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    color: #FFFAE3;
    transition: background-color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.year-nav-btn svg {
    width: 32px;
    height: 32px;
}

.year-text {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #FFFAE3;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Loading/Error States */
.kalender-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    gap: 0.75rem;
}

.kalender-status p {
    color: #d1d5db;
}

.loader-icon {
    width: 2rem;
    height: 2rem;
    color: #f0c419;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Month Grid */
.month-grid-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 3rem 1rem;
}

@media (min-width: 640px) {
    .month-grid-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .month-grid-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .month-grid-container {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .month-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .month-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.month-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.month-card:hover {
    background-color: #f9fafb; /* gray-50 */
    transform: scale(1.02);
}

.month-card.selected {
    background: linear-gradient(to bottom right, #f0c419, #d6aa0b);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.3); /* ring effect */
    z-index: 10;
}

.month-card-bg-effect {
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, transparent, rgba(243, 244, 246, 0.5));
    border-bottom-left-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.month-card:not(.selected):hover .month-card-bg-effect {
    opacity: 1;
}

.month-name {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0a1f13;
}

.month-badge {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
}

.month-card.selected .month-badge {
    background-color: rgba(10, 31, 19, 0.1);
    color: #0a1f13;
}

/* Events Detail Section */
.events-section {
    max-width: 56rem; /* 4xl */
    margin: 0 auto;
    padding: 0 1rem;
    animation: fade_in_slide_up 0.5s ease-out forwards;
}

@media (min-width: 640px) {
    .events-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@keyframes fade_in_slide_up {
    0% {
        opacity: 0;
        transform: translateY(2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-container {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem; /* 3xl */
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* 2xl */
}

@media (min-width: 768px) {
    .events-container {
        padding: 2.5rem;
    }
}

.events-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.events-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #FFFAE3;
    margin-bottom: 0.5rem;
    text-align: center;
}

.events-title-divider {
    height: 0.25rem;
    width: 6rem;
    background-color: #f0c419;
    border-radius: 9999px;
}

/* Event List */
.events-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
    border-left: 8px solid #f0c419;
}

.event-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .event-card {
        padding: 2rem;
    }
}

.event-card-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .event-card-main {
        flex-direction: row;
    }
}

.event-date-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f3f4f6; /* gray-100 */
    border-radius: 0.75rem; /* xl */
    padding: 1rem;
    min-width: 120px;
    text-align: center;
}

@media (min-width: 768px) {
    .event-date-box {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.event-date-icon {
    color: #0d2a18;
    width: 2rem;
    height: 2rem;
}

@media (min-width: 768px) {
    .event-date-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.25rem;
    }
}

.event-date-text {
    font-weight: 700;
    color: #0d2a18;
    font-size: 0.875rem; /* sm */
    line-height: 1.25;
}

@media (min-width: 768px) {
    .event-date-text {
        font-size: 1rem; /* base */
    }
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.event-name {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #0d2a18;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #4b5563; /* gray-600 */
}

@media (min-width: 640px) {
    .event-meta {
        flex-direction: row;
    }
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #f0c419;
}

.event-desc-wrapper {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6; /* gray-100 */
}

.event-desc {
    color: #374151; /* gray-700 */
    line-height: 1.625; /* relaxed */
    white-space: pre-wrap;
}

/* Empty State */
.events-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    text-align: center;
}

.events-empty-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.events-empty-icon {
    width: 3rem;
    height: 3rem;
    color: #9ca3af; /* gray-400 */
}

.events-empty-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #d1d5db; /* gray-300 */
    margin-bottom: 0.25rem;
}

.events-empty-text {
    color: #9ca3af; /* gray-400 */
}
