/* Church Stream - Frontend Styles */

/* ── Login ─────────────────────────────────────────────── */
.cs-login-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.cs-login-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cs-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.cs-login-icon {
    font-size: 32px;
    color: #1e40af;
    margin-bottom: 12px;
}

.cs-login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.cs-login-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.cs-login-form .cs-field-group {
    margin-bottom: 18px;
}

.cs-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.cs-login-form input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cs-login-form input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.cs-submit-btn {
    width: 100%;
    padding: 12px;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}

.cs-submit-btn:hover { background: #1e3a8a; }

/* ── Alert ─────────────────────────────────────────────── */
.cs-alert {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
}

.cs-alert--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.cs-alert--success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }

/* ── Dashboard ─────────────────────────────────────────── */
.cs-dashboard-wrap { padding: 10px 0; }

.cs-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.cs-dashboard-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.cs-dashboard-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.cs-logout-btn {
    padding: 8px 18px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-logout-btn:hover { background: #f9fafb; color: #374151; }

.cs-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.cs-group-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.cs-group-card:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 16px rgba(30,64,175,0.12);
    transform: translateY(-2px);
    color: inherit;
}

.cs-group-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af;
    margin-bottom: 12px;
}

.cs-group-live-dot.cs-live {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    animation: cs-pulse 2s infinite;
}

@keyframes cs-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}

.cs-group-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.cs-group-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.cs-join-btn {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
}

.cs-no-groups {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ── Stream ─────────────────────────────────────────────── */
.cs-stream-wrap { padding: 0; }

.cs-stream-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cs-back-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.cs-back-link:hover { color: #1e40af; }

.cs-stream-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.cs-live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: cs-livepulse 2s infinite;
}

@keyframes cs-livepulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

.cs-player-wrap {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cs-video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.cs-no-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    color: #9ca3af;
    text-align: center;
}

.cs-no-stream-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.cs-no-stream p { font-size: 16px; margin: 0 0 6px; }
.cs-no-stream small { font-size: 13px; }

.cs-error { color: #ef4444; padding: 20px 0; }
