/**
 * Ez Church Frontend Styles
 * 
 * Styles for shortcodes and frontend display
 */

/* Sermon Grid/List */
.ezchurch-sermons {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-1 {
    grid-template-columns: 1fr;
}

.ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ezchurch-sermons.ezchurch-sermons-list {
    grid-template-columns: 1fr;
}

/* Sermon Card */
.ezchurch-sermon-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.ezchurch-sermon-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ezchurch-sermon-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.ezchurch-sermon-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ezchurch-sermon-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(163, 230, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.ezchurch-sermon-content {
    padding: 20px;
}

.ezchurch-sermon-series {
    font-size: 12px;
    color: #a3e635;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ezchurch-sermon-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.ezchurch-sermon-title a {
    color: #1f2937;
    text-decoration: none;
}

.ezchurch-sermon-title a:hover {
    color: #a3e635;
}

.ezchurch-sermon-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.ezchurch-sermon-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ezchurch-sermon-excerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ezchurch-sermon-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ezchurch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #a3e635;
    color: #1f2937;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.ezchurch-btn:hover {
    background: #84cc16;
    color: #1f2937;
}

.ezchurch-btn-audio {
    background: #3b82f6;
    color: #fff;
}

.ezchurch-btn-audio:hover {
    background: #2563eb;
    color: #fff;
}

.ezchurch-btn-video {
    background: #ef4444;
    color: #fff;
}

.ezchurch-btn-video:hover {
    background: #dc2626;
    color: #fff;
}

.ezchurch-btn-notes {
    background: #f59e0b;
    color: #fff;
}

.ezchurch-btn-notes:hover {
    background: #d97706;
    color: #fff;
}

/* Single Sermon */
.ezchurch-sermon-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ezchurch-sermon-series-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(163, 230, 53, 0.1);
    color: #a3e635;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 16px;
}

.ezchurch-sermon-single .ezchurch-sermon-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.ezchurch-sermon-meta-large {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 32px;
}

.ezchurch-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.ezchurch-sermon-player-container {
    margin-bottom: 32px;
}

.ezchurch-sermon-description {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 32px;
}

.ezchurch-sermon-downloads h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.ezchurch-download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ezchurch-btn-download {
    background: #1f2937;
    color: #fff;
    text-decoration: none !important;
}

.ezchurch-btn-download:hover {
    background: #111827;
    color: #fff;
}

/* Players */
.ezchurch-video-player,
.ezchurch-audio-player {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.ezchurch-video-player iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.ezchurch-audio-player audio {
    width: 100%;
}

/* Series Grid */
.ezchurch-sermon-series {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.ezchurch-sermon-series.ezchurch-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ezchurch-sermon-series.ezchurch-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ezchurch-sermon-series.ezchurch-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ezchurch-series-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ezchurch-series-image {
    padding-top: 56.25%;
    position: relative;
    background: #f3f4f6;
}

.ezchurch-series-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ezchurch-series-content {
    padding: 20px;
}

.ezchurch-series-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.ezchurch-series-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.ezchurch-series-count {
    font-size: 12px;
    color: #a3e635;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Staff Grid */
.ezchurch-staff-list {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.ezchurch-staff-list.ezchurch-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ezchurch-staff-list.ezchurch-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ezchurch-staff-list.ezchurch-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ezchurch-staff-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ezchurch-staff-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
}

.ezchurch-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ezchurch-staff-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.ezchurch-staff-role {
    color: #a3e635;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ezchurch-staff-email {
    color: #3b82f6;
    font-size: 14px;
    text-decoration: none;
}

.ezchurch-staff-email:hover {
    text-decoration: underline;
}

/* Member Count */
.ezchurch-member-count {
    font-size: 48px;
    font-weight: 700;
    color: #a3e635;
}

/* No Content */
.ezchurch-no-content {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-3,
    .ezchurch-sermons.ezchurch-sermons-grid.ezchurch-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ezchurch-sermon-series.ezchurch-columns-3,
    .ezchurch-sermon-series.ezchurch-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ezchurch-staff-list.ezchurch-columns-3,
    .ezchurch-staff-list.ezchurch-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ezchurch-video-player iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .ezchurch-sermons.ezchurch-sermons-grid {
        grid-template-columns: 1fr;
    }
    
    .ezchurch-sermon-series {
        grid-template-columns: 1fr;
    }
    
    .ezchurch-staff-list {
        grid-template-columns: 1fr;
    }
    
    .ezchurch-sermon-single .ezchurch-sermon-title {
        font-size: 28px;
    }
    
    .ezchurch-video-player iframe {
        height: 250px;
    }
}
