/* Orthodox Calendar Styles */

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.nav-btn {
    background: rgba(93, 64, 55, 0.1);
    border: 1px solid rgba(93, 64, 55, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 16px;
    color: #5D4037;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-btn:hover {
    background: rgba(93, 64, 55, 0.2);
    border-color: rgba(93, 64, 55, 0.5);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(0);
}

.today-btn {
    background: rgba(188, 108, 37, 0.1);
    border-color: rgba(188, 108, 37, 0.3);
    color: var(--primary-color);
}

.today-btn:hover {
    background: rgba(188, 108, 37, 0.2);
    border-color: rgba(188, 108, 37, 0.5);
}

/* Enhanced Calendar Header */
.calendar-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(93, 64, 55, 0.2);
}

.calendar-header h2 {
    font-size: 24px;
    color: #5D4037;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.current-date {
    font-size: 16px;
    color: #5D4037;
    font-weight: 600;
    background: rgba(93, 64, 55, 0.1);
    padding: 6px 14px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(93, 64, 55, 0.2);
    margin-bottom: 5px;
}

.julian-date {
    font-size: 14px;
    color: #8D6E63;
    font-style: italic;
    opacity: 0.8;
}

/* Liturgical Info Header */
.liturgical-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.tone-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tone-label {
    font-size: 12px;
    color: #5D4037;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tone-value {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.liturgical-color-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #5D4037;
    display: inline-block;
}

.color-indicator.color-gold { background: #FFD700; }
.color-indicator.color-white { background: #FFFFFF; }
.color-indicator.color-red { background: #DC143C; }
.color-indicator.color-green { background: #228B22; }
.color-indicator.color-purple { background: #800080; }
.color-indicator.color-blue { background: #4169E1; }

.color-description {
    font-size: 12px;
    color: #5D4037;
    font-weight: 500;
}

/* Saints Section */
.saints-section {
    margin-bottom: 20px;
        padding-left: 15px;
    padding-right: 15px;
}

.saints-title {
    font-size: 14px;
    color: #5D4037;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(93, 64, 55, 0.2);
    padding-bottom: 5px;
    /* padding-left: 15px;
    padding-right: 15px; */
}

.saints-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* padding-left: 15px;
    padding-right: 15px; */
}

.saint-item {
    padding: 12px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(93, 64, 55, 0.1);
    transition: all 0.3s ease;
}

.saint-item:hover {
    background: rgba(93, 64, 55, 0.08);
    border-color: rgba(93, 64, 55, 0.2);
    transform: translateY(-1px);
    cursor: default;
}

.saint-item.major {
    background: linear-gradient(135deg, rgba(188, 108, 37, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(188, 108, 37, 0.3);
}

.saint-item.major .saint-name {
    color: var(--primary-color);
    font-weight: 700;
}

.saint-name {
    font-size: 16px;
    color: #3E2723;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.saint-description {
    font-size: 13px;
    color: #5D4037;
    line-height: 1.3;
    opacity: 0.9;
}

.saint-troparion {
    font-size: 12px;
    color: #6D4C41;
    font-style: italic;
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.saint-expand-hint {
    font-size: 10px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 8px;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Fasting Section */
.fasting-section {
    margin-bottom: 20px;
    padding: 12px 27px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(93, 64, 55, 0.1);
    cursor: default;
}

.fasting-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}


.fasting-label {
    font-size: 12px;
    color: #5D4037;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fasting-status {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* .fasting-status.fasting-none { color: #4CAF50; }
.fasting-status.fasting-oil { color: #FF9800; }
.fasting-status.fasting-fish { color: #2196F3; }
.fasting-status.fasting-strict { color: #F44336; } */

.fasting-description {
    font-size: 11px;
    color: #6D4C41;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Scripture Section */
.scripture-section {
    margin-bottom: 15px;
}

.scripture-title {
    font-size: 14px;
    color: #5D4037;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(93, 64, 55, 0.2);
    padding-bottom: 5px;
}

.scripture-readings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reading-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.reading-type {
    font-size: 11px;
    color: #5D4037;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reading-text {
    font-size: 13px;
    color: #3E2723;
    font-weight: 500;
}

.no-readings {
    font-size: 12px;
    color: #6D4C41;
    font-style: italic;
    text-align: center;
    padding: 10px;
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .calendar-navigation {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .calendar-header h2 {
        font-size: 20px;
    }
    
    .current-date {
        font-size: 14px;
        padding: 5px 12px;
    }
    
    .liturgical-info-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .tone-display,
    .liturgical-color-display {
        justify-content: center;
    }
    
    .saint-item {
        padding: 10px;
    }
    
    .saint-name {
        font-size: 15px;
    }
    
    .saint-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .calendar-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 60px;
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .today-btn {
        flex: 2;
    }
    
    .calendar-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .current-date {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .julian-date {
        font-size: 11px;
    }
    
    .saints-title,
    .scripture-title {
        font-size: 13px;
    }
    
    .saint-name {
        font-size: 14px;
    }
    
    .saint-description {
        font-size: 11px;
    }
    
    .saint-troparion {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    .fasting-section {
        padding: 10px;
    }
    
    .reading-item {
        padding: 6px;
    }
    
    .reading-text {
        font-size: 12px;
    }
}

/* Animation for content changes */
.orthodox-calendar {
    transition: opacity 0.3s ease;
}

.orthodox-calendar.loading {
    opacity: 0.7;
}

/* Keyboard navigation indicators */
.nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Saint Modal Styles */
.saint-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.saint-modal-content {
    background: linear-gradient(135deg, #F9F5EB 0%, #FFF8E1 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(188, 108, 37, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(188, 108, 37, 0.2);
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.saint-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 2px solid rgba(188, 108, 37, 0.2);
    background: linear-gradient(135deg, rgba(188, 108, 37, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.saint-modal-header h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #5D4037;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(93, 64, 55, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

.saint-modal-body {
    padding: 25px;
}

.saint-modal-description {
    margin-bottom: 20px;
}

.saint-modal-description p {
    font-size: 16px;
    color: #3E2723;
    line-height: 1.5;
    margin-bottom: 10px;
}

.saint-significance {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(188, 108, 37, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(188, 108, 37, 0.2);
    margin-top: 10px;
}

.saint-modal-troparion {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(93, 64, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.saint-modal-troparion h4 {
    font-size: 16px;
    color: #5D4037;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.troparion-text {
    font-size: 15px;
    color: #3E2723;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
    padding: 10px;
    background: rgba(249, 245, 235, 0.5);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.saint-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saint-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(188, 108, 37, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(188, 108, 37, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Modal Animation */
.saint-modal {
    animation: modalFadeIn 0.3s ease;
}

.saint-modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .saint-modal {
        padding: 10px;
    }
    
    .saint-modal-content {
        max-height: 90vh;
    }
    
    .saint-modal-header {
        padding: 15px 20px 10px 20px;
    }
    
    .saint-modal-header h3 {
        font-size: 20px;
    }
    
    .modal-close {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .saint-modal-body {
        padding: 20px;
    }
    
    .saint-modal-description p {
        font-size: 15px;
    }
    
    .troparion-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .saint-modal {
        padding: 5px;
    }
    
    .saint-modal-header {
        padding: 12px 15px 8px 15px;
    }
    
    .saint-modal-header h3 {
        font-size: 18px;
    }
    
    .saint-modal-body {
        padding: 15px;
    }
    
    .saint-modal-description p {
        font-size: 14px;
    }
    
    .saint-info-item {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Print styles */
@media print {
    .calendar-navigation {
        display: none;
    }
    
    .orthodox-calendar {
        box-shadow: none;
        background: white;
    }
    
    .calendar-header h2 {
        color: black;
    }
    
    .current-date {
        background: none;
        border: 1px solid black;
        color: black;
    }
    
    .saint-modal {
        display: none !important;
    }
}