/* Additional Styles for New Pages */

/* CSS Variables - Make sure these match your main styles.css */
:root {
    --primary: #9b59b6;
    --purple: #9b59b6;
    --light-purple: #c39bd3;
    --success: #00b894;
    --danger: #e74c3c;
    --warning: #f39c12;
    
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e8e8e8;
    
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #95a5a6;
    
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 60px;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    
    --transition: all 0.2s ease;
}

/* Simple Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-label.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    background: white;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #9b59b6;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #95a5a6;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #7f8c8d;
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #e74c3c;
}

/* Checkbox Styles */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
    color: #2c3e50;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--purple), var(--light-purple));
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Page Content Layout */
.page-content {
    padding: var(--space-3xl) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

/* Content Section */
.content-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

/* Settings Container */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--danger);
}

.danger-zone h2 {
    color: var(--danger);
}

.danger-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: #fef5f5;
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.danger-actions:first-of-type {
    margin-top: 0;
}

.danger-actions h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.danger-actions p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Buttons */
.btn-danger {
    background: var(--danger);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    font-size: 15px;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Journal & Sermon Styles */
.journal-editor,
.sermon-editor {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.journal-form,
.sermon-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Journal Entries */
.journal-entries,
.sermons-list {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journal-entry {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.journal-entry:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.entry-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
}

.entry-date {
    background: #9b59b6;
    color: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    min-width: 70px;
}

.date-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    font-size: 0.813rem;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
}

.entry-meta h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.entry-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mood-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #7f8c8d;
}

.scripture-ref {
    color: #7f8c8d;
    font-size: 0.875rem;
}

.entry-content {
    padding: 24px;
    line-height: 1.8;
    color: #2c3e50;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.entry-time {
    color: #95a5a6;
    font-size: 0.875rem;
}

/* Sermon Cards */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.sermon-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.sermon-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.sermon-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.sermon-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
    color: #2c3e50;
}

.sermon-date {
    color: #95a5a6;
    font-size: 0.875rem;
    font-weight: 600;
}

.sermon-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.sermon-points {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.sermon-points strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.sermon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

/* Profile Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

.profile-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e8e8e8;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
}

.profile-username {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 8px;
}

.profile-joined {
    color: #95a5a6;
    font-size: 0.875rem;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stats-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row strong {
    color: #9b59b6;
    font-size: 1.125rem;
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: #9b59b6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.quick-link-card svg {
    width: 48px;
    height: 48px;
    color: #9b59b6;
    margin-bottom: 12px;
}

.quick-link-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.quick-link-card p {
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* Filter & Search */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
}

.search-form button {
    padding: 12px;
}

/* Tags */
.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #7f8c8d;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.tag:hover {
    background: #9b59b6;
    color: white;
}

.tag.active {
    background: #9b59b6;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: #95a5a6;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.empty-state p {
    color: #7f8c8d;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f8f9fa;
    color: #9b59b6;
}

.page-number.active {
    background: #9b59b6;
    color: white;
}

/* Prayer Card Enhancements */
.prayer-card.answered {
    border-color: #00b894;
    background: linear-gradient(to bottom, rgba(0, 184, 148, 0.05), white);
}

.answered-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00b894;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.answered-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
    color: #00b894;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 40px 0 24px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .sermons-grid {
        grid-template-columns: 1fr;
    }
    
    .danger-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .content-section {
        padding: 24px;
    }
}