/* Prayer Warriors - page styles (built on top of custom.css theme) */

.pw-section {
    max-width: 1000px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.pw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pw-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.pw-subtitle {
    color: #64748b;
    margin-top: 4px;
    font-size: 0.95rem;
}

/* Cards grid */
.pw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pw-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.pw-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pw-card p {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.pw-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pw-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pw-badge.public { background: #dcfce7; color: #166534; }
.pw-badge.unlisted { background: #fef3c7; color: #92400e; }
.pw-badge.open { background: #e0e7ff; color: #3730a3; }
.pw-badge.warrior { background: #dbeafe; color: #1e40af; }
.pw-badge.group { background: #f3e8ff; color: #6b21a8; }
.pw-badge.points { background: #f1f5f9; color: #475569; }

/* Forms */
.pw-form {
    display: none;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.pw-form.active { display: block; }

.pw-form h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.pw-field { margin-bottom: 16px; }

.pw-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.pw-field .hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.78rem;
}

.pw-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pw-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pw-checkbox input {
    width: auto;
    margin-top: 4px;
}

.pw-checkbox label { margin-bottom: 0; }

/* Empty / loading states */
.pw-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--gray-300);
}

/* Prayer list on detail page */
.pw-prayer {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.pw-prayer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pw-prayer-head strong { color: #1a1a2e; }

.pw-prayer audio { width: 100%; margin-top: 6px; }

.pw-feedback-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pw-feedback-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #334155;
}

.pw-emoji-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pw-emoji-btn {
    font-size: 1.3rem;
    background: #f1f5f9;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.pw-emoji-btn:hover { background: #e2e8f0; transform: scale(1.08); }

/* Breadcrumbs */
.pw-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.pw-breadcrumb a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.15s;
}

.pw-breadcrumb a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

.pw-breadcrumb-sep {
    color: #94a3b8;
}

/* Footer "Powered by" line */
.footer-poweredby {
    text-align: right;
    margin-top: 12px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.pw-breadcrumb-current {
    color: #64748b;
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hero on home */
.pw-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.pw-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.pw-hero p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 28px;
}

.pw-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pw-verse {
    margin-top: 40px;
    font-style: italic;
    color: #64748b;
}

/* Multi-select member picker */
.pw-member-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #f8fafc;
}

.pw-member-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.pw-member-option input { width: auto; }

/* ===== UI MODAL (replaces js alerts) ===== */
.ui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.ui-modal-overlay.open { display: flex; }

.ui-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: zoomIn 0.2s ease-out;
}

.ui-modal-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.ui-modal.success .ui-modal-icon { color: #16a34a; }
.ui-modal.error .ui-modal-icon { color: #dc2626; }
.ui-modal.info .ui-modal-icon { color: #2563eb; }

.ui-modal h3 {
    font-size: 1.25rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.ui-modal p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ui-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
