/* styles.css - Основни стилове за уебсайта */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --official-holiday: #dc3545;
    --easter-holiday: #17a2b8;
    --educational-holiday: #28a745;
    --weekend-color: #6c757d;
    --vacation-suggestion: #ffc107;
}

/* Общи стилове */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

/* Header стилове */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Навигация */
.year-navigation {
    text-align: center;
}

.year-navigation .btn-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.year-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.year-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Календар стилове */
.calendar-month {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.calendar-month:hover {
    transform: translateY(-5px);
}

.calendar-table {
    margin-bottom: 0;
}

.calendar-table th {
    text-align: center;
    font-weight: 600;
    padding: 1rem 0.5rem;
    background-color: var(--primary-color) !important;
    color: white;
    border: none;
}

.calendar-table td {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #dee2e6;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    vertical-align: middle;
}

.calendar-table td:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
    z-index: 10;
}

/* Типове дни */
.calendar-day.official-holiday {
    background-color: var(--official-holiday);
    color: white;
    font-weight: bold;
}

.calendar-day.easter-holiday {
    background-color: var(--easter-holiday);
    color: white;
    font-weight: bold;
}

.calendar-day.educational-holiday {
    background-color: var(--educational-holiday);
    color: white;
    font-weight: bold;
}

.calendar-day.weekend {
    background-color: #f8f9fa;
    color: var(--weekend-color);
}

.calendar-day.vacation-suggestion {
    background-color: var(--vacation-suggestion);
    color: #333;
    font-weight: bold;
}

.empty-day {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Легенда */
.legend {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legend h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.legend-item {
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.5rem;
}

.legend-color.official-holiday {
    background-color: var(--official-holiday);
}

.legend-color.easter-holiday {
    background-color: var(--easter-holiday);
}

.legend-color.educational-holiday {
    background-color: var(--educational-holiday);
}

.legend-color.weekend {
    background-color: var(--weekend-color);
}

.legend-color.vacation-suggestion {
    background-color: var(--vacation-suggestion);
}

/* Списък с празници */
.holidays-list {
    margin-top: 2rem;
}

.holidays-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.holidays-list .card {
    transition: all 0.3s ease;
    border-width: 2px;
}

.holidays-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.holidays-list .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Предстоящи празници */
.upcoming-holidays {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.upcoming-holidays h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.upcoming-holidays .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.upcoming-holidays .list-group-item:hover {
    background-color: #f8f9fa;
}

.upcoming-holidays .list-group-item:last-child {
    border-bottom: none;
}

/* Google Ads контейнери */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

.ad-container.header-ad {
    margin-bottom: 1rem;
}

.ad-container.sidebar-ad {
    position: sticky;
    top: 2rem;
}

.ad-placeholder {
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    padding: 2rem;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

.etarget-ad {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .etarget-ad {
        display: none;
    }
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2rem;
    }
    
    .site-header .lead {
        font-size: 1rem;
    }
    
    .calendar-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }
    
    .year-navigation .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .calendar-month {
        padding: 1rem;
    }
    
    .upcoming-holidays,
    .legend {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .year-navigation .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .year-navigation .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .site-header {
        padding: 1.5rem 0;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover ефекти */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tooltip стилове */
[title] {
    position: relative;
}

/* Скрол бар стилове */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}



/* Стилове за бутона Начало */
.home-button {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-button:focus {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/* Responsive стилове за бутона Начало */
@media (max-width: 768px) {
    .home-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .site-header .col-lg-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .home-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}



.calendar-day.today {
    background-color: #ffc107 !important;
    color: #333 !important;
    font-weight: bold !important;
    border: 2px solid #ff9800 !important;
}

