/**
 * Typikon 2026 - Orthodox Albania Style
 * Matching orthodoxalbania.org design
 */

/* ========================================
   CONTAINER
   ======================================== */
.typikon-container {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #F5F5F0;
    color: #333333;
    border: 1px solid #ddd;
    padding: 0;
    margin: 20px 0;
    max-width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.typikon-header {
    background: #F5F5F0;
    border-bottom: 2px solid #8B1A1A;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.typikon-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.typikon-day-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #8B1A1A;
    line-height: 1;
}

.typikon-month-name {
    font-size: 1em;
    color: #333;
    font-style: italic;
}

.typikon-year {
    font-size: 0.85em;
    color: #666;
}

.typikon-day-of-week {
    font-size: 0.85em;
    color: #8B1A1A;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* ========================================
   READINGS - TOP
   ======================================== */
.typikon-readings-summary {
    background: #EDEDED;
    border-bottom: 1px solid #ddd;
    padding: 8px 20px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.typikon-reading-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typikon-reading-label {
    color: #8B1A1A;
    font-weight: bold;
    font-size: 0.8em;
}

.typikon-reading-value {
    color: #333;
    font-size: 0.85em;
}

/* ========================================
   COMMEMORATIONS
   ======================================== */
.typikon-commemorations {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    background: #F5F5F0;
}

.typikon-commemoration {
    padding: 4px 0;
    font-size: 0.85em;
}

.typikon-commemoration.major-feast {
    padding: 6px 0;
}

.typikon-commemoration.major-feast .typikon-comm-name {
    color: #8B1A1A;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
}

.typikon-saint-type {
    font-size: 0.8em;
    color: #8B1A1A;
    font-weight: bold;
}

.typikon-comm-name {
    color: #333;
}

/* ========================================
   FASTING & MODE ROW
   ======================================== */
.typikon-meta-row {
    display: flex;
    gap: 20px;
    padding: 8px 20px;
    background: #EDEDED;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    font-size: 0.8em;
}

.typikon-fasting {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typikon-fasting-label {
    color: #666;
    font-size: 0.85em;
}

.typikon-fasting-value {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}

.typikon-fasting.fasting-all_permitted .typikon-fasting-value {
    background: #4A7C4A;
    color: #fff;
}

.typikon-fasting.fasting-fish .typikon-fasting-value {
    background: #4A6A7C;
    color: #fff;
}

.typikon-fasting.fasting-oil_wine .typikon-fasting-value {
    background: #7C6A4A;
    color: #fff;
}

.typikon-fasting.fasting-strict .typikon-fasting-value {
    background: #8B1A1A;
    color: #fff;
}

.typikon-octoechos,
.typikon-eothinon {
    color: #666;
    font-size: 0.9em;
}

.typikon-octoechos span,
.typikon-eothinon span {
    color: #8B1A1A;
    font-weight: bold;
}

/* ========================================
   SERVICES - ACCORDION
   ======================================== */
.typikon-services {
    background: #F5F5F0;
}

.typikon-service {
    border-bottom: 1px solid #ddd;
}

.typikon-service:last-child {
    border-bottom: none;
}

.typikon-service-header {
    background: #F5F5F0;
    padding: 8px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.typikon-service-header:hover {
    background: #EDEDED;
}

.typikon-service-title {
    color: #8B1A1A;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typikon-service-icon {
    color: #8B1A1A;
    font-size: 0.9em;
}

.typikon-service-toggle {
    color: #8B1A1A;
    font-size: 0.6em;
    transition: transform 0.3s ease;
}

.typikon-service.open .typikon-service-toggle {
    transform: rotate(180deg);
}

.typikon-service-content {
    display: none;
    padding: 12px 20px 15px 20px;
    background: #fff;
    color: #333;
    line-height: 1.6;
    font-size: 0.82em;
    border-top: 1px solid #eee;
}

.typikon-service.open .typikon-service-content {
    display: block;
}

.typikon-highlight {
    color: #8B1A1A;
    font-weight: bold;
}

/* ========================================
   NOTES
   ======================================== */
.typikon-notes {
    background: #EDEDED;
    padding: 10px 20px;
    border-top: 1px solid #ddd;
}

.typikon-notes-title {
    color: #8B1A1A;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    font-weight: bold;
}

.typikon-note {
    color: #555;
    font-size: 0.8em;
    font-style: italic;
    margin: 5px 0;
    line-height: 1.5;
    padding-left: 12px;
    border-left: 2px solid #8B1A1A;
}

/* ========================================
   ERROR
   ======================================== */
.typikon-error {
    background: #F5E6E6;
    color: #8B1A1A;
    padding: 20px 25px;
    border-left: 4px solid #8B1A1A;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .typikon-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .typikon-date {
        justify-content: center;
    }
    
    .typikon-day-number {
        font-size: 2.2em;
    }
    
    .typikon-readings-summary {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
    }
    
    .typikon-meta-row {
        flex-direction: column;
        gap: 10px;
        padding: 12px 20px;
    }
    
    .typikon-commemorations {
        padding: 15px 20px;
    }
    
    .typikon-service-header {
        padding: 12px 20px;
    }
    
    .typikon-service-content {
        padding: 15px 20px;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .typikon-service-content {
        display: block !important;
    }
    
    .typikon-service-toggle {
        display: none;
    }
}

/* ========================================
   3 DAYS WIDGET - TABS
   ======================================== */
.typikon-3days-widget {
    margin: 20px 0;
}

.typikon-tabs {
    display: flex;
    border-bottom: 2px solid #8B1A1A;
    background: #F5F5F0;
}

.typikon-tab {
    flex: 1;
    padding: 10px 15px;
    background: #EDEDED;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Georgia', serif;
    margin-right: 2px;
}

.typikon-tab:last-child {
    margin-right: 0;
}

.typikon-tab:hover {
    background: #F5F5F0;
}

.typikon-tab.active {
    background: #F5F5F0;
    border-bottom: 2px solid #F5F5F0;
    margin-bottom: -2px;
    position: relative;
}

.typikon-tab-label {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: #8B1A1A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.typikon-tab-date {
    display: block;
    font-size: 0.75em;
    color: #666;
    margin-top: 2px;
}

.typikon-tab.active .typikon-tab-label {
    color: #8B1A1A;
}

.typikon-tab.active .typikon-tab-date {
    color: #333;
}

.typikon-tabs-content {
    background: #F5F5F0;
}

/* CRITICAL: Hide non-active panels */
.typikon-tab-panel {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.typikon-tab-panel.active {
    display: block !important;
    visibility: visible;
    height: auto;
    overflow: visible;
}

.typikon-tab-panel .typikon-container {
    border-top: none;
    margin: 0;
}

/* Responsive tabs */
@media (max-width: 600px) {
    .typikon-tabs {
        flex-direction: column;
    }
    
    .typikon-tab {
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 1px;
        border-bottom: 1px solid #ddd;
    }
    
    .typikon-tab.active {
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* ========================================
   FOOTER - SOURCE INFO (έξω από το κουτί)
   ======================================== */
.typikon-source-footer {
    text-align: center;
    padding: 8px 0;
    margin-top: 5px;
}

.typikon-source-footer p {
    margin: 1px 0;
    font-size: 9px;
    color: #bbb;
    line-height: 1.3;
    font-family: Arial, sans-serif;
}

.typikon-source-footer p:first-letter {
    font-size: inherit;
    float: none;
}

.typikon-source-footer a {
    color: #bbb;
    text-decoration: none;
}

.typikon-source-footer a:hover {
    color: #8B1A1A;
}
