/**
 * EWTN Feast Days - Frontend Styles
 * Enhanced styling for feast days and book offers
 */

/* ===== HERO BANNER SECTION ===== */
.feast-day-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

.feast-day-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    padding: 2rem 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.6);
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

/* Feast Day Card */
.feast-day-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    border: 1px solid rgba(255,255,255,0.2);
}

.feast-date-badge {
    background: #dc2626;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.date-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.date-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.feast-day-info {
    flex: 1;
}

.feast-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.saint-patron {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feast-date-range {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== MAIN CONTENT SECTION ===== */
.feast-day-content {
    padding: 3rem 0;
    background: #f8fafc;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feast-day-article {
    margin: 0;
}

/* Feast Day Details */
.feast-day-details {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #dc2626;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    color: #1f2937;
}

/* Entry Content */
.entry-content {
    line-height: 1.7;
    color: #374151;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Social Sharing */
.social-sharing {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-sharing h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.email {
    background: #6b7280;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 0.5rem;
}

/* Related Feast Days */
.related-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.related-item h4 a {
    color: #1f2937;
    text-decoration: none;
}

.related-item h4 a:hover {
    color: #dc2626;
}

.related-date {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Current Season */
.ewtn-current-season {
    background: #fef3c7;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #f59e0b;
}

.ewtn-current-season h3 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1rem;
}

.ewtn-current-season p {
    margin: 0;
    color: #78350f;
    font-weight: 600;
}

/* ===== ARCHIVE PAGES ===== */
.ewtn-feast-days-archive {
    padding: 2rem 0;
}

.feast-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feast-day-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feast-day-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.feast-day-item h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.feast-day-item h3 a {
    color: #1f2937;
    text-decoration: none;
}

.feast-day-item h3 a:hover {
    color: #dc2626;
}

.feast-day-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== SEARCH AND FILTERS ===== */
.ewtn-feast-days-search {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #dc2626;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background: #b91c1c;
}

.ewtn-feast-days-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ewtn-feast-days-filters h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #dc2626;
}

/* ===== BOOK OFFERS ===== */
.ewtn-book-offers {
    padding: 2rem 0;
}

.book-offer-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f59e0b;
}

.book-offer-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.book-offer-item h4 a {
    color: #1f2937;
    text-decoration: none;
}

.book-offer-item h4 a:hover {
    color: #f59e0b;
}

.book-offer-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .feast-day-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .feast-title {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feast-days-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-group label {
        min-width: auto;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem 0;
    }
    
    .feast-day-card {
        padding: 1.5rem;
    }
    
    .feast-title {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .widget {
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
