/* =====================================
   GLOBAL SETUP & LAYOUT
===================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Georgia", "Times New Roman", Garamond, serif;
    background-color: #0e0f12;
    color: #e5e7eb;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* =====================================
   SIDEBAR
===================================== */
.sidebar {
    width: 260px;
    background: #121316;
    border-right: 1px solid #2a2a30;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo h2 {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar .logo p {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(176, 139, 65, 0.15);
    color: #ffffff;
    border-left: 3px solid #b08b41;
}

/* =====================================
   MAIN CONTENT AREA
===================================== */
.main {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
    max-width: 960px;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: #ffffff;
    font-weight: normal;
}

header p {
    color: #cbd5e1;
    font-style: italic;
}

/* =====================================
   CARDS & SECTIONS
===================================== */
.card {
    background: rgba(26, 26, 30, 0.85);
    border: 1px solid #2a2a30;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 30px;
}

.ai-card {
    border-left: 4px solid #b08b41;
    background: rgba(176, 139, 65, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    color: #ffffff;
    font-weight: normal;
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 0;
}

blockquote {
    border-left: 3px solid #b08b41;
    padding-left: 16px;
    color: #cbd5e1;
    font-style: italic;
    font-size: 18px;
}

/* =====================================
   FORMS & INPUTS
===================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    font-size: 14px;
    color: #cbd5e1;
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #121316;
    border: 1px solid #3a3a42;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
}

textarea {
    height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b08b41;
}

/* =====================================
   BUTTONS
===================================== */
button {
    background: #b08b41;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #c29b4c;
}

#newPrayerBtn,
#refreshPrayers,
#refreshPublicPrayers,
#discoverPrayersBtn {
    background: transparent;
    border: 1px solid #3a3a42;
    color: #cbd5e1;
    padding: 8px 16px;
}

#newPrayerBtn:hover,
#refreshPrayers:hover,
#refreshPublicPrayers:hover,
#discoverPrayersBtn:hover {
    background: #2a2a30;
    color: #ffffff;
}

/* =====================================
   DYNAMIC PRAYER CARDS
===================================== */
.prayer-item {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid #2a2a30;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 14px;
}

.prayer-item h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 6px;
}

.prayer-meta {
    font-size: 12px;
    color: #b08b41;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
}

.prayer-body {
    color: #cbd5e1;
    font-size: 14px;
    white-space: pre-wrap;
}

.prayer-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    background: #2a2a30;
}

.btn-small:hover {
    background: #3a3a42;
}

.btn-danger {
    background: #8b2626;
}

.btn-danger:hover {
    background: #a83232;
}

.placeholder-text {
    color: #6b7280;
    font-style: italic;
}

/* =====================================
   DISCOVER DRAWER / MODAL
===================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.discover-modal {
    position: fixed;
    right: 0;
    top: 0;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background: #121316;
    border-left: 1px solid #2a2a30;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2a30;
    padding-bottom: 14px;
}

.modal-header h2 {
    margin-bottom: 0;
}

#closeDrawer {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    padding: 4px 8px;
}

#closeDrawer:hover {
    color: #ffffff;
}

.modal-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}