/* Bible Study Frontend Styles */

.bible-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.bible-study-header {
    margin-bottom: 40px;
}

.bible-study-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

/* Filters */
.bible-study-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
}

.bible-study-filter-btn {
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.bible-study-filter-btn:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.bible-study-filter-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Date Filter */
.bible-study-date-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bible-study-date-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s ease;
    outline: none;
}

.bible-study-date-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Grid */
.bible-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
    transition: opacity 0.3s ease;
}

/* Cards */
.bible-study-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    cursor: pointer;
}

.bible-study-card:nth-child(1) { animation-delay: 0.1s; }
.bible-study-card:nth-child(2) { animation-delay: 0.2s; }
.bible-study-card:nth-child(3) { animation-delay: 0.3s; }
.bible-study-card:nth-child(4) { animation-delay: 0.4s; }
.bible-study-card:nth-child(5) { animation-delay: 0.5s; }
.bible-study-card:nth-child(6) { animation-delay: 0.6s; }

.bible-study-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Card Shadows */
.bible-study-shadow-none {
    box-shadow: none;
}

.bible-study-shadow-small {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.bible-study-shadow-small:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.bible-study-shadow-medium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.bible-study-shadow-medium:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.bible-study-shadow-large {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bible-study-shadow-large:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Status Variations */
.bible-study-card-current {
    border: 3px solid #10b981;
}

.bible-study-card-current .bible-study-card-content {
    font-weight: 600;
}

.bible-study-card-coming {
    opacity: 0.85;
}

.bible-study-card-coming:hover {
    opacity: 1;
}

.bible-study-card-past {
    opacity: 0.75;
}

.bible-study-card-past:hover {
    opacity: 1;
}

.bible-study-card-future {
    opacity: 0.85;
}

.bible-study-card-future:hover {
    opacity: 1;
}

/* Status Bar */
.bible-study-status-bar {
    height: 6px;
    width: 100%;
    transition: height 0.3s ease;
}

.bible-study-card:hover .bible-study-status-bar {
    height: 8px;
}

/* Card Overlay (for image backgrounds) */
.bible-study-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Card Content */
.bible-study-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.bible-study-date,
.bible-study-reference {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bible-study-card:hover .bible-study-date,
.bible-study-card:hover .bible-study-reference {
    transform: translateX(4px);
}

.bible-study-date {
    font-weight: 600;
}

.bible-study-reference {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.bible-study-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Badge */
.bible-study-badge {
    margin-top: 16px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.bible-study-badge-text {
    display: inline-block;
    padding: 6px 16px;
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.bible-study-badge-coming .bible-study-badge-text {
    background: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* No Results */
.bible-study-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 18px;
    animation: fadeIn 0.6s ease-out;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .bible-study-container {
        padding: 30px 15px;
    }
    
    .bible-study-title {
        font-size: 2rem;
    }
    
    .bible-study-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bible-study-filters {
        flex-direction: column;
    }
    
    .bible-study-date-filter {
        width: 100%;
        flex-direction: column;
    }
    
    .bible-study-date-input,
    .bible-study-filter-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .bible-study-title {
        font-size: 1.75rem;
    }
    
    .bible-study-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .bible-study-card-content {
        padding: 20px;
    }
    
    .bible-study-date,
    .bible-study-reference {
        font-size: 14px;
    }
}
