/*
Theme Name: Cầu Nguyện (Catholic Prayer Theme)
Theme URI: https://example.com/cau-nguyen-theme
Author: Catholic Dev
Author URI: https://example.com
Description: Một giao diện dành riêng cho cộng đoàn cầu nguyện Công giáo, tập trung vào sự thanh tịnh và hiệp thông.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cau-nguyen-theme
*/

/* --- Reset & Base Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif', serif; /* Font chữ có chân trang trọng */
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
* { box-sizing: border-box; }

/* --- Header --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo-icon { 
    background: #2563eb; 
    color: white; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-weight: bold;
    font-size: 20px;
}
.site-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin: 0; }

/* --- Navigation (Tabs) --- */
.main-nav button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-nav button:hover { color: #2563eb; background: #eff6ff; }
.main-nav button.active { color: #2563eb; background: #eff6ff; }

/* --- Main Content Area --- */
.site-main {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 80vh;
}

/* --- Intro Banner --- */
.intro-banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(to bottom right, #eff6ff, #fff);
    border: 1px solid #dbeafe;
    border-radius: 12px;
}
.intro-banner h2 { color: #1e3a8a; margin-top: 0; font-size: 1.5rem; }
.intro-banner p { color: #475569; font-style: italic; margin-bottom: 0; }

/* --- Form Compose --- */
.compose-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease-out;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #334155; font-family: sans-serif; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: sans-serif;
}
.form-control:focus { outline: none; border-color: #2563eb; ring: 2px solid #bfdbfe; }

.btn-submit {
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn-submit:hover { background: #1d4ed8; }
.btn-submit:disabled { background: #94a3b8; cursor: not-allowed; }

/* --- Prayer Feed --- */
.prayer-list { display: flex; flex-direction: column; gap: 20px; }
.prayer-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.prayer-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
.prayer-title { margin: 0; font-size: 1.2rem; color: #1e293b; font-weight: 700; }
.prayer-author { 
    font-size: 0.75rem; 
    background: #f1f5f9; 
    color: #475569; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-family: sans-serif;
    font-weight: 600;
}

.prayer-content { color: #475569; font-size: 1rem; white-space: pre-wrap; margin-bottom: 20px; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.btn-amen {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-amen:hover { background: #eff6ff; color: #2563eb; }
.btn-amen.amen-active { color: #e11d48; background: #fff1f2; }

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 50px;
}

/* --- Utilities --- */
.hidden { display: none; }
.text-center { text-align: center; }
.empty-state { padding: 40px; text-align: center; color: #94a3b8; border: 2px dashed #e2e8f0; border-radius: 12px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}