/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --primary-dark: #3264d0;
    --secondary-color: #FF5E62;
    --secondary-light: #fff5f5;
    --text-color: #333;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --round-button-radius: 50%;
    --circle-dimension: 50px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important;
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0.5s !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
    min-height: 100vh;
}

/* Content */
#content {
    width: 100%;
    transition: var(--transition);
    margin-left: 0;
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
}

/* Kullanıcı bilgisinin yeni konumu (sağ üst) */
/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(71, 118, 230, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Holiday Icon Style */
.holiday-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    box-shadow: 0 5px 10px rgba(71, 118, 230, 0.1);
}

.holiday-icon i {
    font-size: 2.5rem;
    color: white;
}

.holiday-icon:hover {
    transform: scale(1.1);
}

.holiday-icon-sm {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(71, 118, 230, 0.15);
    border-radius: 50%;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.countdown-unit {
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 80px;
}

.countdown-unit:hover {
    transform: translateY(-5px);
}

.countdown-unit span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.countdown-unit small {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.holiday-card {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.holiday-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(71, 118, 230, 0.1);
}

.tatil-sayac {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Holiday celebration animation */
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.celebrate {
    animation: celebrate 0.5s ease infinite;
}

/* Holiday progress bar */
.holiday-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.holiday-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.holiday-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: progressShimmer 2s infinite;
}

/* İlerleme çubuğu yüzde göstergesi */
.holiday-progress-bar::before {
    content: attr(data-progress);
    position: absolute;
    right: 2px;
    top: -20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.holiday-progress:hover .holiday-progress-bar::before {
    opacity: 1;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Holiday notification styles */
.holiday-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.holiday-notification.show {
    transform: translateX(0);
}

.holiday-notification i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.holiday-notification-content {
    flex: 1;
}

.holiday-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.holiday-notification-message {
    font-size: 0.9rem;
    color: #666;
}

.holiday-notification-close {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.holiday-notification-close:hover {
    color: var(--primary-color);
}

/* Holiday modal styles */
.holiday-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.holiday-modal.show {
    opacity: 1;
    visibility: visible;
}

.holiday-modal-content {
    padding: 20px;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px); /* Initial state for animation */
    transition: transform 0.3s ease;
}

.holiday-modal.show .holiday-modal-content {
    transform: translateY(0);
}

.holiday-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.holiday-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.holiday-modal-close {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.holiday-modal-close:hover {
    color: var(--primary-color);
}

.holiday-modal-body {
    margin-bottom: 20px;
}

.holiday-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ana Tatil Sayacı Stilleri */
.main-holiday-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(71, 118, 230, 0.12);
    position: relative;
    overflow: hidden;
}

.main-holiday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.holiday-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.main-holiday-card .holiday-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 10px 25px rgba(71, 118, 230, 0.2);
    transition: transform 0.3s ease;
}

.main-holiday-card .holiday-icon i {
    font-size: 3rem;
    color: white;
}

.main-holiday-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.holiday-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 30px 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.holiday-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Countdown Units İyileştirilmiş Stil */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.countdown-unit {
    padding: 15px 20px;
    border-radius: 15px;
    min-width: 110px;
    text-align: center;
    transition: transform 0.3s ease;
    background: white;
    box-shadow: 0 8px 20px rgba(71, 118, 230, 0.08);
}

.countdown-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(71, 118, 230, 0.15);
}

.countdown-unit span {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.countdown-unit small {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: pulse 1s infinite;
    margin-top: 5px;
}

/* Tatil Kartları İyileştirilmiş Stil */
.holiday-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.holiday-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.holiday-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(71, 118, 230, 0.15);
}

.holiday-card:hover::before {
    transform: scaleX(1);
}

.holiday-card .card-body {
    border-radius: 15px;
    background: white;
}

.holiday-card .card-title {
    font-weight: 700;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.holiday-card:hover .card-title {
    color: var(--primary-color);
}

.tatil-sayac {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
    text-align: center;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.holiday-card:hover .tatil-sayac {
    background: linear-gradient(to right, var(--primary-light), rgba(142, 84, 233, 0.1));
}

/* Sol Üst Geri Butonu Stili */
.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

/* Media Queries */
@media (max-width: 992px) {
    .main-holiday-card {
        padding: 1.5rem;
    }
    .main-holiday-title {
        font-size: 1.5rem;
    }
    .countdown-unit {
        min-width: 80px;
        padding: 1rem;
    }
    .countdown-unit span {
        font-size: 2.2rem;
    }
    .countdown-separator {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .countdown-display {
        flex-wrap: wrap;
        gap: 10px;
    }
    .countdown-unit {
        min-width: 60px;
        padding: 0.75rem;
    }
    .countdown-unit span {
        font-size: 1.8rem;
    }
    .countdown-separator {
        font-size: 1.6rem;
        margin-top: 0.5rem;
    }
    .holiday-icon {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .countdown-unit span {
        font-size: 1.5rem;
    }
    .countdown-separator {
        font-size: 1.4rem;
        margin-top: 8px;
    }
    .holiday-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .main-holiday-card {
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .countdown-unit span {
        font-size: 22px;
    }
    .countdown-separator {
        font-size: 22px;
        margin-top: 8px;
    }
    .holiday-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    .tatil-sayac {
        font-size: 14px;
        padding: 10px;
    }
    .tatil-sayac span {
        font-size: 18px;
    }
    h2 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.1rem;
    }
    .holiday-card .card-title {
        font-size: 1rem;
    }
}

/* Holiday print styles */
@media print {
    .holiday-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .holiday-notification,
    .holiday-modal {
        display: none;
    }
    .countdown-separator {
        animation: none;
    }
    .holiday-card {
        border: 1px solid #ddd;
    }
    .countdown-unit {
        border: 1px solid #ddd;
    }
}

/* Holiday dark mode support */
@media (prefers-color-scheme: dark) {
    .holiday-card {
        background: white;
        color: var(--text-color);
    }
    .countdown-unit {
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .countdown-unit small {
        color: #666;
    }
    .countdown-unit span {
        color: var(--primary-color);
    }
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    .holiday-modal-content {
        background: white;
        color: var(--text-color);
    }
    .holiday-modal-title {
        color: var(--primary-color);
    }
    .holiday-notification {
        background: white;
    }
    .holiday-notification-message {
        color: #666;
    }
}

/* Holiday accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .countdown-separator {
        animation: none;
    }
    .holiday-card,
    .countdown-unit,
    .share-btn,
    .holiday-calendar-item {
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Holiday high contrast mode */
@media (prefers-contrast: more) {
    .holiday-card {
        border: 2px solid var(--primary-color);
    }
    .countdown-unit {
        border: 2px solid var(--primary-color);
    }
    .holiday-modal-content {
        border: 2px solid var(--primary-color);
    }
}