/* Calendar Page Specific Styles */

/* Hero Section */
.calendar-hero {
/*  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%); */
    color: #079768;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #079768;
}

.current-date-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.date-item i {
    font-size: 1.2rem;
}

.date-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group h2 {
    font-size: 19px;
    font-weight: 600;
    color: #079768;
    margin: 0;
    min-width: 336px;
    text-align: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #047857;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Calendar Header */
.calendar-month-header {
    text-align: center;
    margin-bottom: 1rem;
/*   padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0; */
}

.calendar-month-english {
    font-size: 1.5rem;
    font-weight: 600;
    color: #047857;
    margin-bottom: 0.5rem;
}

.calendar-month-arabic {
    font-size: 36px;
    color: #047857;
    font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

.calendar-year-hijri {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.calendar-year-gregorian {
    font-size: 1.4rem;
    color: #047857;
    font-weight: 500;
}

/* Calendar Grid */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    background: #f3f4f6;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.calendar-empty {
    background: white;
    min-height: 80px;
}

.calendar-day {
    background: white;
    padding: 0.5rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f9fafb;
    transform: scale(1.02);
}

.calendar-day.today {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.calendar-day.friday {
    background: #fef3c7;
}

.calendar-day.has-event {
    background: #f0fdf4;
}

.day-number {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.gregorian-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.event-indicator {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

/* Islamic Events Section */
.islamic-events {
    margin-bottom: 2rem;
}

.islamic-events h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #079768;
    margin-bottom: 1.5rem;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.event-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.event-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Calendar Info Section */
.calendar-info {
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #1e3a8a;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Year View Styles */
.month-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.month-header {
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.month-english {
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.month-arabic {
    font-size: 24px;
    color: #047857;
    font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

.mini-calendar {
    font-size: 0.7rem;
    flex: 1;
}

.mini-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.25rem;
}

.mini-weekday {
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    padding: 0.2rem;
    font-size: 0.6rem;
}

.mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-height: 20px;
}

.mini-day:hover {
    background: #e5e7eb;
}

.mini-today {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    position: relative;
    border: 2px solid #3b82f6;
}

.mini-today-indicator {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
}

.mini-friday {
    background: #fef3c7;
    color: #92400e;
}

.mini-has-event {
    background: #f0fdf4;
    color: #166534;
}

.mini-empty {
    background: transparent;
}

.nav-year {
    color: #000;
    font-size: 17px;
    padding: 0 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .current-date-display {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .control-group {
        width: 100%;
        justify-content: center;
    }
    
    .control-group h2 {
        min-width: auto;
        font-size: 1.2rem;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-header {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .gregorian-date {
        font-size: 0.7rem;
    }
    
    /* Calendar header responsive */
    .calendar-month-header {
        margin-bottom: 0.75rem;
    }
    
    .calendar-month-english {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .calendar-month-arabic {
        font-size: 32px;
    }
    
    .calendar-year-hijri {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .calendar-year-gregorian {
        font-size: 1.1rem;
    }
    
    /* Year view responsive */
    .calendar-grid[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .month-card {
        padding: 0.5rem;
    }
    
    .month-english {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .month-arabic {
        font-size: 0.7rem;
    }
    
    .mini-calendar {
        font-size: 0.6rem;
    }
    
    .mini-day {
        font-size: 0.65rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar-hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .date-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 50px;
    }
    
    /* Calendar header mobile */
    .calendar-month-header {
        margin-bottom: 0.5rem;
    }
    
    .calendar-month-english {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .calendar-month-arabic {
        font-size: 28px;
    }
    
    .calendar-year-hijri {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .calendar-year-gregorian {
        font-size: 0.9rem;
    }
    
    /* Year view mobile */
    .calendar-grid[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .month-card {
        padding: 0.4rem;
    }
    
    .month-english {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .month-arabic {
        font-size: 0.6rem;
    }
    
    .mini-calendar {
        font-size: 0.5rem;
    }
    
    .mini-weekday {
        padding: 0.1rem;
        font-size: 0.6rem;
    }
    
    .mini-day {
        font-size: 0.55rem;
    }
    
    .event-card {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

/* Animation and Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.calendar-hero,
.calendar-controls,
.calendar-container,
.islamic-events,
.calendar-info {
    animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.calendar-day:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .calendar-day {
        border: 1px solid #374151;
    }
    
    .calendar-day.today {
        border-width: 3px;
    }
    
    .event-card,
    .info-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .calendar-hero,
    .calendar-controls,
    .calendar-container,
    .islamic-events,
    .calendar-info {
        animation: none;
    }
    
    .calendar-day:hover,
    .event-card:hover,
    .info-card:hover,
    .btn:hover {
        transform: none;
    }
}
