/* Marathi Calendar Styles */

.marathi-calendar-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.calendar-navigation {
    display: flex;
    gap: 10px;
}

.calendar-navigation button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calendar-navigation button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    font-weight: bold;
    text-align: center;
}

.weekday {
    padding: 15px 10px;
    border-right: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.calendar-day.has-festival {
    background: #fff3e0;
}

.calendar-day.festival-national {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.calendar-day.festival-festival {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
}

.calendar-day.festival-cultural {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

.day-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.festival-name {
    font-size: 12px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 3px;
    line-height: 1.2;
}

.tithi, .nakshatra {
    font-size: 10px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.1;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.festival-national {
    background: #4caf50;
}

.legend-color.festival-festival {
    background: #ff9800;
}

.legend-color.festival-cultural {
    background: #9c27b0;
}

/* Calendar Popup */
.calendar-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.popup-date {
    margin: 0;
    font-size: 20px;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body {
    padding: 20px;
}

.popup-festival {
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 15px;
}

.popup-tithi, .popup-nakshatra {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Festival List Styles */
.marathi-festivals-list {
    margin: 20px 0;
}

.festivals-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.festivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.festival-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.festival-card.festival-national {
    border-left: 4px solid #4caf50;
}

.festival-card.festival-festival {
    border-left: 4px solid #ff9800;
}

.festival-card.festival-cultural {
    border-left: 4px solid #9c27b0;
}

.festival-date {
    background: #f5f5f5;
    padding: 10px 15px;
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.festival-content {
    padding: 15px;
}

.festival-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.festival-tithi, .festival-nakshatra {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.festival-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-top: 10px;
}

.festival-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.festival-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Daily Info Styles */
.daily-info {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.daily-date {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.daily-festival {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9800;
}

.daily-festival h4 {
    margin: 0 0 10px 0;
    color: #d32f2f;
    font-size: 20px;
}

.daily-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.daily-image {
    text-align: center;
}

.daily-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-title {
        font-size: 20px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .festival-name {
        font-size: 10px;
    }
    
    .tithi, .nakshatra {
        font-size: 9px;
    }
    
    .festivals-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .marathi-calendar-container {
        margin: 10px;
        border-radius: 5px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .festival-name {
        font-size: 9px;
    }
    
    .tithi, .nakshatra {
        font-size: 8px;
    }
}

/* Loading States */
.calendar-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.calendar-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.calendar-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
}

.no-festivals, .no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* January 2026 Specific Styles */
.marathi-january-2026-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.month-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.january-calendar-section,
.january-festivals-section,
.january-daily-info-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.january-festivals-section h3,
.january-daily-info-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.january-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.daily-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daily-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.daily-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.day-number {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.day-name {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
}

.tithi-info,
.nakshatra-info,
.festival-info,
.description-info {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.tithi-info strong,
.nakshatra-info strong,
.festival-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.festival-info {
    background: #e8f5e8;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.description-info {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design for January 2026 */
@media (max-width: 768px) {
    .january-daily-grid {
        grid-template-columns: 1fr;
    }
    
    .month-title {
        font-size: 24px;
    }
    
    .marathi-january-2026-container {
        padding: 10px;
    }
}
