* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2d3748;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.lectionary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Date Header */
.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.nav-button:active {
    transform: scale(0.95);
}

.date-display {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.date-button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Content Area */
#contentArea {
    padding: 0;
}

/* Feast Section */
.feast-section {
    padding: 20px;
    background: #fff9e6;
    border-bottom: 1px solid #f0e6d2;
}

.feast-box {
    background: #fffbf0;
    border-left: 4px solid #f39c12;
    padding: 16px;
    border-radius: 8px;
}

.feast-icon {
    font-size: 18px;
    margin-bottom: 8px;
    color: #8b6914;
}

.feast-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #744210;
}

.feast-reading {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Reading Sections */
.reading-section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.reading-section:last-child {
    border-bottom: none;
}

.reading-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 8px;
}

.morning-icon {
    font-size: 18px;
    margin-bottom: 12px;
    color: #667eea;
}

.evening-icon {
    font-size: 18px;
    margin-bottom: 12px;
    color: #764ba2;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

.reading-text {
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.5;
}

#morningContent,
#eveningContent {
    display: flex;
    flex-direction: column;
}

/* Buttons */
.read-button,
.listen-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.read-button {
    background: #4c72d9;
    color: white;
}

.read-button:hover {
    background: #3d5ac4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 114, 217, 0.3);
}

.listen-button {
    background: #f39c12;
    color: white;
}

.listen-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #2d3748;
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.button-primary,
.button-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background: #667eea;
    color: white;
}

.button-primary:hover {
    background: #5568d3;
}

.button-secondary {
    background: #e9ecef;
    color: #2d3748;
}

.button-secondary:hover {
    background: #dee2e6;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .date-header {
        padding: 16px 12px;
    }

    .reading-section {
        padding: 16px;
    }

    .read-button,
    .listen-button {
        font-size: 13px;
        padding: 6px 12px;
    }
}
