/* Uncursed Spiritual Theme CSS - Enhanced Version */

/* CSS Custom Properties */
:root {
    --spiritual-gold: #FCF0AB;
    --spiritual-black: #000000;
    --spiritual-purple: #2D1B69;
    --spiritual-white: #FEFEFE;
    --breakthrough-green: #28a745;
    --urgent-amber: #ffc107;
    --soft-gray: #f8f9fa;
    --border-light: rgba(0,0,0,0.1);
    --shadow-light: rgba(252, 240, 171, 0.2);
    --shadow-medium: rgba(252, 240, 171, 0.4);
    
    /* Premium Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--soft-gray);
    color: var(--spiritual-black);
    margin: 0;
    padding: 0;
    line-height: var(--leading-normal);
    font-weight: var(--font-normal);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography */
.logo {
    margin: 0;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 32px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-semibold);
    color: var(--spiritual-black);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

/* Performance-Critical Hardware Acceleration */
.spiritual-card, 
.prayer-button, 
.nav-item,
.floating-prayer-btn,
.action-btn {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Empty State Styles */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.empty-state-content {
    max-width: 400px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--spiritual-gold);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--spiritual-black);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-state .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Error actions for user feed error state */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.error-actions .btn {
    min-width: 120px;
}

/* Dark mode empty state */
body.dark-mode .empty-state h3 {
    color: #ffffff;
}

body.dark-mode .empty-state p {
    color: #cccccc;
}

body.dark-mode .empty-state-icon {
    color: var(--spiritual-gold);
}

/* Mobile Header */
.mobile-header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--urgent-amber);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Desktop Header */
.desktop-header .navbar {
    box-shadow: 0 2px 4px var(--shadow-light);
}

.desktop-header .dropdown img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
    border: 1px solid var(--border-light);
    border-radius: 25px;
    background: var(--soft-gray);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Mobile Category Tabs */
.category-tabs {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 60px;
    z-index: 99;
}

.tab-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
}

.tab-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item {
    background: none;
    border: none;
    padding: 12px 16px;
    white-space: nowrap;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-item.active {
    color: var(--spiritual-gold);
    border-bottom-color: var(--spiritual-gold);
    font-weight: 600;
}

.tab-item:hover {
    color: var(--spiritual-gold);
}

/* Main Content */
.main-content {
    padding-bottom: 90px; /* Space for mobile bottom nav */
}

@media (min-width: 768px) {
    .main-content {
        padding-bottom: 0;
    }
}

.content-feed {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .content-feed {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Desktop Masonry Layout - Only for mobile feed */
@media (min-width: 768px) {
    #contentFeed:not(#contentFeedDesktop) {
        column-count: 2;
        column-gap: 24px;
        padding: 24px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    #contentFeed:not(#contentFeedDesktop) .spiritual-post {
        display: inline-block;
        width: 100%;
        margin-bottom: 24px;
        break-inside: avoid;
        max-width: none;
        justify-self: unset;
    }
}

@media (min-width: 1200px) {
    #contentFeed:not(#contentFeedDesktop) {
        column-count: 3;
        column-gap: 28px;
        padding: 28px;
        max-width: 1600px;
    }
    
    #contentFeed:not(#contentFeedDesktop) .spiritual-post {
        margin-bottom: 28px;
    }
}

@media (min-width: 1400px) {
    #contentFeed:not(#contentFeedDesktop) {
        column-count: 3;
        column-gap: 32px;
        padding: 32px;
        max-width: 1800px;
    }
    
    #contentFeed:not(#contentFeedDesktop) .spiritual-post {
        margin-bottom: 32px;
    }
}

@media (min-width: 1600px) {
    #contentFeed:not(#contentFeedDesktop) {
        column-count: 4;
        column-gap: 32px;
        padding: 32px;
        max-width: 2000px;
    }
}

/* Sidebar */
.sidebar {
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-title {
    font-weight: 600;
    color: var(--spiritual-purple);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--spiritual-black);
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
    color: var(--spiritual-purple);
}

.category-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--spiritual-gold);
}

.category-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Post Prompt */
.post-prompt {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 0 16px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.post-prompt .btn {
    border-radius: 25px;
    color: #666;
    background: var(--soft-gray);
    border: 1px solid var(--border-light);
}

/* Enhanced Spiritual Posts */
.spiritual-post {
    background: white;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(252, 240, 171, 0.15);
    border: 1px solid rgba(252, 240, 171, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.spiritual-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 240, 171, 0.25);
    border-color: #FCF0AB;
}

/* Desktop Post Optimizations */
@media (min-width: 768px) {
    .spiritual-post {
        margin-bottom: 0;
        border-radius: 20px;
        box-shadow: 0 6px 20px rgba(252, 240, 171, 0.12);
    }
    
    .spiritual-post:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 35px rgba(252, 240, 171, 0.2);
    }
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

/* User avatar icon styles */
.user-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spiritual-purple), var(--spiritual-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 18px;
}

.user-avatar-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spiritual-purple), var(--spiritual-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: white;
    font-size: 14px;
}

/* Dark mode for avatar icons */
body.dark-mode .user-avatar-icon,
body.dark-mode .user-avatar-icon-small {
    background: linear-gradient(135deg, #2a2a2a, var(--spiritual-gold));
}

/* Desktop Header Optimizations */
@media (min-width: 768px) {
    .post-header {
        padding: 20px;
    }
    
    .user-avatar {
        width: 48px;
        height: 48px;
        margin-right: 14px;
    }
    
    .user-avatar-icon {
        width: 48px;
        height: 48px;
        margin-right: 14px;
        font-size: 20px;
    }
    
    .username {
        font-size: 1.1rem;
    }
    
    .post-time {
        font-size: 0.85rem;
    }
}

.user-info {
    flex: 1;
    max-height: 3.6em; /* Limit to 3 lines (1.2em line-height * 3) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Clickable user info section */
.user-info-section {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    margin-right: 8px;
}

.user-info-section:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .user-info-section:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-info-section:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
}

body.dark-mode .user-info-section:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* User Feed Breadcrumb */
.user-feed-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, var(--spiritual-purple), var(--spiritual-gold));
    color: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-feed-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-feed-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.back-to-feed-btn:active {
    transform: translateY(0);
}

.user-feed-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-feed-title i {
    font-size: 1rem;
}

.user-feed-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--spiritual-gold);
    transition: transform 0.2s ease;
}

.user-feed-profile-image:hover {
    transform: scale(1.05);
}

.user-feed-profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spiritual-gold), #f0e68c);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--spiritual-gold);
    transition: transform 0.2s ease;
}

.user-feed-profile-icon:hover {
    transform: scale(1.05);
}

.user-feed-profile-icon i {
    color: var(--spiritual-black);
    font-size: 0.9em;
}

/* Dark mode styles for profile image */
body.dark-mode .user-feed-profile-image {
    border-color: var(--spiritual-gold);
}

body.dark-mode .user-feed-profile-icon {
    background: linear-gradient(135deg, var(--spiritual-gold), #f0e68c);
    border-color: var(--spiritual-gold);
}

body.dark-mode .user-feed-profile-icon i {
    color: var(--spiritual-black);
}

/* Dark mode breadcrumb */
body.dark-mode .user-feed-breadcrumb {
    background: linear-gradient(135deg, #2a2a2a, var(--spiritual-gold));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .back-to-feed-btn {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .back-to-feed-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.username {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--spiritual-purple);
    letter-spacing: -0.01em;
    font-family: var(--font-primary);
}

.post-time {
    font-size: var(--text-xs);
    color: #666666;
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    font-family: var(--font-primary);
}

/* Post Header Actions */
.post-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.post-edit-btn:hover {
    background: #f0f0f0;
    color: var(--spiritual-gold);
}

/* Enhanced Post Type Badges */
.post-type-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: var(--font-primary);
}

.post-type-badge.testimony {
    background: linear-gradient(135deg, #FCF0AB, #f4e76e);
    color: #000;
    border: 2px solid #f4e76e;
}

.post-type-badge.scripture {
    background: linear-gradient(135deg, #2D1B69, #4a2d8a);
    color: white;
    border: 2px solid #2D1B69;
}

.post-type-badge.urgent {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    border: 2px solid #ff9800;
    animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5); }
}

/* Post Content */
.post-content {
    padding: 16px;
}

.post-title {
    margin: 0 0 12px 0;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    font-family: var(--font-display);
    color: var(--spiritual-purple);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

.post-text {
    margin: 0 0 16px 0;
    line-height: var(--leading-relaxed);
    color: #444;
    font-size: var(--text-base);
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    letter-spacing: 0.01em;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Desktop Content Optimizations */
@media (min-width: 768px) {
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    
    .post-text {
        font-size: 1rem;
        margin-bottom: 18px;
        line-height: 1.7;
    }
    
    .post-image img {
        border-radius: 12px;
    }
    
    .post-video {
        border-radius: 12px;
        margin: 18px 0;
    }
}

/* Video Posts */
.post-video {
    position: relative;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.post-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal video specific styles */
.modal-post-card .post-video video {
    border-radius: 0;
    margin: 0;
}

.modal-post-card .post-video {
    border-radius: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-post-card .post-video video {
    max-height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-video:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

/* User Profile Elements */
.verified-badge {
    color: var(--spiritual-gold);
    margin-left: 4px;
    font-size: 0.8rem;
}

.profile-status {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Views Button */
.views-btn {
    color: #666;
    font-size: 0.8rem;
}

.views-btn:hover {
    color: var(--spiritual-gold);
}

/* Enhanced Scripture Card */
.scripture-card {
    background: linear-gradient(135deg, #2D1B69, #4a2d8a);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(45, 27, 105, 0.3);
}

.scripture-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.scripture-card::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.scripture-text {
    font-size: var(--text-xl);
    font-style: italic;
    margin: 0 0 12px 0;
    line-height: var(--leading-relaxed);
    font-family: var(--font-display);
    font-weight: var(--font-normal);
    letter-spacing: 0.01em;
}

.scripture-reference {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    opacity: 0.9;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
}

/* Desktop Scripture Card Optimizations */
@media (min-width: 768px) {
    .scripture-card {
        padding: 32px;
        border-radius: 20px;
        margin-bottom: 18px;
    }
    
    .scripture-card::before {
        font-size: 3.5rem;
        top: 12px;
        left: 24px;
    }
    
    .scripture-card::after {
        font-size: 3.5rem;
        bottom: 12px;
        right: 24px;
    }
    
    .scripture-text {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .scripture-reference {
        font-size: 1rem;
    }
}

.post-reflection {
    font-style: italic;
    color: #666;
}

/* Enhanced Post Actions - More Prominent Spiritual Buttons */
.post-actions {
    display: flex;
    align-items: center;
    padding: 16px;
    border-top: 1px solid rgba(252, 240, 171, 0.2);
    background: linear-gradient(135deg, #fafafa, #ffffff);
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
}

/* Desktop Actions Optimizations */
@media (min-width: 768px) {
    .post-actions {
        padding: 20px;
        gap: 14px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 28px;
    }
    
    .action-btn i {
        font-size: 1rem;
        margin-right: 8px;
    }
}

.action-btn:hover {
    background: linear-gradient(135deg, #FCF0AB, #f4e76e);
    color: #000;
    border-color: #FCF0AB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 240, 171, 0.3);
}

.action-btn i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Special styling for prayer button */
.pray-btn {
    border-color: #FCF0AB;
    color: #2D1B69;
}

.pray-btn:hover,
.pray-btn.active {
    background: linear-gradient(135deg, #FCF0AB, #f4e76e);
    color: #000;
    box-shadow: 0 0 15px rgba(252, 240, 171, 0.5);
}

/* Prayer button icon animation */
.pray-btn i {
    animation: prayerPulse 2s ease-in-out infinite;
}

@keyframes prayerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Amen button special styling */
.amen-btn:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
}

/* Enhanced Prayer Chain */
.prayer-chain {
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    border-top: 2px solid #FCF0AB;
    border-left: 4px solid #FCF0AB;
}

.prayer-chain-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2D1B69;
    font-size: 0.9rem;
}

.prayer-chain-header i {
    margin-right: 8px;
    color: #FCF0AB;
    animation: chainPulse 2s ease-in-out infinite;
}

@keyframes chainPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.recent-prayers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prayer-name {
    background: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    color: #2D1B69;
    border: 1px solid #FCF0AB;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(252, 240, 171, 0.2);
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-post-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spiritual-purple), #4a2d8a);
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(45, 27, 105, 0.4);
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    animation: floatPost 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.floating-post-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-post-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(45, 27, 105, 0.6);
}

.floating-post-btn:hover::before {
    opacity: 1;
}

.floating-post-btn i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

@keyframes floatPost {
    0%, 100% { 
        transform: translateY(0px); 
        box-shadow: 0 6px 20px rgba(45, 27, 105, 0.4);
    }
    50% { 
        transform: translateY(-5px); 
        box-shadow: 0 8px 25px rgba(45, 27, 105, 0.5);
    }
}

.floating-post-btn:active {
    transform: scale(0.95);
}

/* Enhanced Floating Prayer Button */
.floating-prayer-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FCF0AB, #f4e76e);
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(252, 240, 171, 0.4);
    color: #000;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    animation: floatPrayer 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.floating-prayer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(252, 240, 171, 0.6);
}

@keyframes floatPrayer {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.floating-prayer-btn:active {
    transform: scale(0.95);
}

/* Enhanced Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, white, #fafafa);
    border-top: 2px solid rgba(252, 240, 171, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    /* Hardware acceleration for smooth performance */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    /* iPhone safe area support */
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 8px 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Prevent text selection and tap highlights */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 50px;
    border-radius: 12px;
    margin: 4px;
}

.nav-item:hover {
    background: rgba(252, 240, 171, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(252, 240, 171, 0.2), rgba(244, 231, 110, 0.2));
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
    color: #666;
}

.nav-item span {
    font-size: 0.7rem;
    color: #666;
    transition: color 0.2s ease;
    font-weight: 500;
}

/* Active state - spiritual gold theming */
.nav-item.active i {
    color: #FCF0AB;
    transform: scale(1.2);
    text-shadow: 0 2px 4px rgba(252, 240, 171, 0.5);
}

.nav-item.active span {
    color: #FCF0AB;
    font-weight: 600;
}

/* Touch feedback */
.nav-item:active {
    transform: scale(0.95);
}

.nav-item:hover i {
    color: var(--spiritual-gold);
    transform: scale(1.05);
}

.nav-item:hover span {
    color: var(--spiritual-gold);
}

/* Spiritual Buttons */
.btn-spiritual {
    background: linear-gradient(135deg, var(--spiritual-gold), #f4e76e);
    border: none;
    color: var(--spiritual-black);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-spiritual:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    color: var(--spiritual-black);
}

.btn-spiritual:active {
    transform: translateY(0);
}

.btn-spiritual-light {
    background: var(--soft-gray);
    border: 1px solid var(--border-light);
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.btn-spiritual-light:hover {
    background: var(--spiritual-gold);
    color: var(--spiritual-black);
    border-color: var(--spiritual-gold);
}

.btn-outline-spiritual {
    background: transparent;
    border: 2px solid var(--spiritual-gold);
    color: #333333;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-spiritual:hover {
    background: var(--spiritual-gold);
    color: var(--spiritual-black);
    transform: translateY(-2px);
}

/* Load More Trigger */
.load-more-trigger {
    margin: 40px 0;
}

.text-spiritual {
    color: var(--spiritual-gold) !important;
}

/* Smooth scrolling optimization */
.content-feed {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: none; /* Prevent bounce */
}

/* Memory-efficient animations */
.prayer-glow {
    animation: prayerGlow 0.6s ease-out;
}

@keyframes prayerGlow {
    0% { box-shadow: 0 0 0 rgba(252, 240, 171, 0); }
    50% { box-shadow: 0 0 20px rgba(252, 240, 171, 0.8); }
    100% { box-shadow: 0 0 0 rgba(252, 240, 171, 0); }
}

/* Responsive Design */
@media (max-width: 767px) {
    .spiritual-post {
        margin: 0 12px 20px 12px;
        border-radius: 16px;
        display: block;
        width: auto;
        break-inside: auto;
    }
    
    .content-feed {
        padding: 0;
        display: block;
        column-count: 1;
        column-gap: 0;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .scripture-text {
        font-size: 1.1rem;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .floating-action-buttons {
        bottom: 80px;
        right: 16px;
        gap: 10px;
    }
    
    .floating-post-btn,
    .floating-prayer-btn {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 480px) {
    .spiritual-post {
        margin: 0 8px 16px 8px;
        border-radius: 12px;
        display: block;
        width: auto;
        break-inside: auto;
    }
    
    .content-feed {
        column-count: 1;
        column-gap: 0;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .post-header {
        padding: 12px;
    }
    
    .post-actions {
        padding: 12px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* Desktop Masonry Layout */
@media (min-width: 992px) {
    #contentFeedDesktop {
        column-count: 2;
        column-gap: 24px;
        padding: 24px;
        max-width: 1400px;
        margin: 0 auto;
        transition: all 0.3s ease;
    }
    
    #contentFeedDesktop .spiritual-post {
        display: inline-block;
        width: 100%;
        margin-bottom: 24px;
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    #contentFeedDesktop .spiritual-post:nth-child(1) { animation-delay: 0.1s; }
    #contentFeedDesktop .spiritual-post:nth-child(2) { animation-delay: 0.2s; }
    #contentFeedDesktop .spiritual-post:nth-child(3) { animation-delay: 0.3s; }
    #contentFeedDesktop .spiritual-post:nth-child(4) { animation-delay: 0.4s; }
    #contentFeedDesktop .spiritual-post:nth-child(5) { animation-delay: 0.5s; }
    #contentFeedDesktop .spiritual-post:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1200px) {
    #contentFeedDesktop {
        column-count: 3;
        column-gap: 28px;
        padding: 28px;
        max-width: 1600px;
    }
    
    #contentFeedDesktop .spiritual-post {
        margin-bottom: 28px;
    }
}

@media (min-width: 1400px) {
    #contentFeedDesktop {
        column-count: 3;
        column-gap: 32px;
        padding: 32px;
        max-width: 1800px;
    }
    
    #contentFeedDesktop .spiritual-post {
        margin-bottom: 32px;
    }
}

@media (min-width: 1600px) {
    #contentFeedDesktop {
        column-count: 3;
        column-gap: 32px;
        padding: 32px;
        max-width: 2000px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --spiritual-black: #ffffff;
        --spiritual-white: #1a1a1a;
        --soft-gray: #121212;
        --border-light: rgba(255,255,255,0.1);
    }
    
    body {
        background-color: var(--soft-gray);
        color: var(--spiritual-black);
    }
    
    .spiritual-post,
    .mobile-header,
    .desktop-header .navbar,
    .category-tabs,
    .mobile-bottom-nav,
    .sidebar,
    .category-item {
        background: #1e1e1e;
        border-color: var(--border-light);
    }
    
    .post-actions {
        background: #2a2a2a;
    }
    
    .tab-item,
    .action-btn,
    .category-item {
        color: #ccc;
    }
    
    .tab-item.active,
    .nav-item.active span,
    .nav-item.active i {
        color: var(--spiritual-gold);
    }
    
    .modal-container,
    .modal-content,
    .post-composer-modal .modal-content {
        background: #1e1e1e;
        color: #ccc;
    }
    
    .form-control {
        background: #2a2a2a;
        border-color: var(--border-light);
        color: #ccc;
    }
    
    .form-control:focus {
        background: #2a2a2a;
        border-color: var(--spiritual-gold);
        color: #ccc;
    }
}

/* Manual Dark Mode Class */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Cards and containers */
body.dark-mode .spiritual-post,
body.dark-mode .mobile-header,
body.dark-mode .desktop-header .navbar,
body.dark-mode .category-tabs,
body.dark-mode .mobile-bottom-nav,
body.dark-mode .sidebar,
body.dark-mode .category-item,
body.dark-mode .post-prompt {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
}

/* Enhanced Header Dark Mode Styles */
body.dark-mode .mobile-header {
    background: #1a1a1a;
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .desktop-header .navbar {
    background: #1a1a1a !important;
    border-bottom-color: rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.dark-mode .desktop-header .navbar-brand {
    color: #ffffff;
}

body.dark-mode .desktop-header .nav-link {
    color: #cccccc !important;
}

body.dark-mode .desktop-header .nav-link:hover,
body.dark-mode .desktop-header .nav-link:focus {
    color: #ffffff !important;
}

body.dark-mode .desktop-header .nav-link.active {
    color: var(--spiritual-gold) !important;
}

body.dark-mode .search-box input {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

body.dark-mode .search-box input::placeholder {
    color: #888888;
}

body.dark-mode .search-box input:focus {
    background: #333333;
    border-color: var(--spiritual-gold);
    color: #ffffff;
}

body.dark-mode .search-box i {
    color: #888888;
}

body.dark-mode .btn-link {
    color: #cccccc !important;
}

body.dark-mode .btn-link:hover {
    color: #ffffff !important;
}

body.dark-mode .dropdown-menu {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark-mode .dropdown-item {
    color: #cccccc;
}

body.dark-mode .dropdown-item:hover {
    background: #333333;
    color: #ffffff;
}

body.dark-mode .category-tabs {
    background: #1a1a1a;
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .tab-item {
    color: #cccccc;
}

body.dark-mode .tab-item:hover {
    color: #ffffff;
    background: #2a2a2a;
}

body.dark-mode .tab-item.active {
    color: var(--spiritual-gold);
    border-bottom-color: var(--spiritual-gold);
}

/* Additional mobile header dark mode styles */
body.dark-mode .mobile-header .btn-link {
    color: #cccccc !important;
}

body.dark-mode .mobile-header .btn-link:hover {
    color: #ffffff !important;
}

body.dark-mode .mobile-header .btn-link:active {
    color: var(--spiritual-gold) !important;
}

/* Smooth logo transition for dark mode */
body.dark-mode .logo-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Ensure proper contrast for dark mode elements */
body.dark-mode .notification-badge {
    background: var(--urgent-amber);
    color: #333333;
    font-weight: 700;
}

/* Text colors */
body.dark-mode .username,
body.dark-mode .post-title,
body.dark-mode .post-text,
body.dark-mode .sidebar-title,
body.dark-mode .category-item span,
body.dark-mode .nav-link,
body.dark-mode .dropdown-item {
    color: #ffffff;
}

body.dark-mode .post-time,
body.dark-mode .comment-time {
    color: #ccc;
}

/* Action buttons and interactive elements */
body.dark-mode .post-actions {
    background: #2a2a2a;
}

body.dark-mode .tab-item,
body.dark-mode .action-btn,
body.dark-mode .category-item,
body.dark-mode .nav-item span,
body.dark-mode .nav-item i {
    color: #ccc;
}

body.dark-mode .tab-item:hover,
body.dark-mode .action-btn:hover,
body.dark-mode .category-item:hover {
    color: #ffffff;
    background: #2a2a2a;
}

body.dark-mode .tab-item.active,
body.dark-mode .nav-item.active span,
body.dark-mode .nav-item.active i {
    color: var(--spiritual-gold);
}

/* Buttons */
body.dark-mode .btn-outline-spiritual {
    color: #ffffff;
    border-color: var(--spiritual-gold);
}

body.dark-mode .btn-outline-spiritual:hover {
    background: var(--spiritual-gold);
    color: #333333;
}

body.dark-mode .btn-spiritual {
    background: var(--spiritual-gold);
    color: #333333;
}

body.dark-mode .btn-spiritual:hover {
    background: #f0e68c;
    color: #333333;
}

/* Modals */
body.dark-mode .modal-container,
body.dark-mode .modal-content,
body.dark-mode .post-composer-modal .modal-content,
body.dark-mode .auth-modal .modal-content,
body.dark-mode .search-modal .modal-content {
    background: #1e1e1e;
    color: #ccc;
}

body.dark-mode .modal-close {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark-mode .modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* Forms */
body.dark-mode .form-control,
body.dark-mode .search-input,
body.dark-mode .comment-input {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .form-control:focus,
body.dark-mode .search-input:focus,
body.dark-mode .comment-input:focus {
    background: #2a2a2a;
    border-color: var(--spiritual-gold);
    color: #ffffff;
}

body.dark-mode .form-control::placeholder,
body.dark-mode .search-input::placeholder,
body.dark-mode .comment-input::placeholder {
    color: #888;
}

/* Comments */
body.dark-mode .comment-item {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .comment-author {
    color: #ffffff;
}

body.dark-mode .comment-text {
    color: #ccc;
}

/* Search results */
body.dark-mode .search-results-indicator {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid var(--spiritual-gold);
}

/* Search highlighting */
body.dark-mode mark {
    background-color: var(--spiritual-gold) !important;
    color: #333333 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

/* Notification badges */
body.dark-mode .notification-badge {
    background: var(--spiritual-gold);
    color: #333333;
}

/* Post type badges */
body.dark-mode .post-type-badge {
    background: var(--spiritual-gold);
    color: #333333;
}

/* Scripture cards */
body.dark-mode .scripture-card {
    background: #2a2a2a;
    border-color: var(--spiritual-gold);
}

body.dark-mode .scripture-text {
    color: #ffffff;
}

body.dark-mode .scripture-reference {
    color: var(--spiritual-gold);
}

/* Prayer chain */
body.dark-mode .prayer-chain {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .prayer-chain-header {
    color: #ffffff;
}

body.dark-mode .prayer-name {
    color: #ccc;
}

/* Media elements */
body.dark-mode .post-image img {
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .video-overlay {
    background: rgba(0,0,0,0.7);
}

/* Loading states */
body.dark-mode .modal-loading,
body.dark-mode .search-loading {
    background: #1e1e1e;
    color: #ccc;
}

/* Error states */
body.dark-mode .modal-error {
    background: #1e1e1e;
    color: #ff6b6b;
}

/* Composer specific */
body.dark-mode .composer-header {
    background: #2a2a2a;
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .composer-body {
    background: #1e1e1e;
}

body.dark-mode .media-upload-area {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .media-upload-area:hover {
    background: #333;
    border-color: var(--spiritual-gold);
}

body.dark-mode .upload-placeholder {
    color: #ccc;
}

body.dark-mode .composer-footer {
    background: #2a2a2a;
    border-top-color: rgba(255,255,255,0.1);
}

/* Floating action buttons */
body.dark-mode .floating-post-btn,
body.dark-mode .floating-prayer-btn {
    background: var(--spiritual-gold);
    color: #333333;
}

body.dark-mode .floating-post-btn:hover,
body.dark-mode .floating-prayer-btn:hover {
    background: #f0e68c;
    color: #333333;
}

/* Dropdown menus */
body.dark-mode .dropdown-menu {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .dropdown-item {
    color: #ccc;
}

body.dark-mode .dropdown-item:hover {
    background: #2a2a2a;
    color: #ffffff;
}

/* Scrollbars */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode styles for auth modal */
body.dark-mode .auth-modal .modal-container {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .auth-modal .modal-close {
    color: #ffffff;
}

body.dark-mode .auth-title {
    color: #ffffff;
}

body.dark-mode .auth-subtitle {
    color: #cccccc;
}

body.dark-mode .auth-form .form-label {
    color: #ffffff;
}

body.dark-mode .auth-form .form-control {
    background: #2a2a2a;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .auth-form .form-control:focus {
    border-color: var(--spiritual-gold);
    background: #2a2a2a;
}

body.dark-mode .password-toggle {
    color: #cccccc;
}

body.dark-mode .checkbox-wrapper {
    color: #cccccc;
}

body.dark-mode .forgot-password {
    color: #4dabf7;
}

body.dark-mode .forgot-password:hover {
    color: #74c0fc;
}

body.dark-mode .auth-divider::before {
    background: #444;
}

body.dark-mode .auth-divider span {
    background: #1a1a1a;
    color: #cccccc;
}

body.dark-mode .auth-footer p {
    color: #cccccc;
}

body.dark-mode .auth-footer a {
    color: #4dabf7;
}

body.dark-mode .auth-footer a:hover {
    color: #74c0fc;
}

/* Dark mode styles for post composer modal */
body.dark-mode .post-composer-modal .modal-container {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .post-composer-modal .modal-close {
    color: #ffffff;
}

body.dark-mode .post-composer-modal .modal-close:hover {
    color: #cccccc;
}

body.dark-mode .composer-header h3 {
    color: #ffffff;
}

body.dark-mode .composer-body .form-label {
    color: #ffffff;
}

body.dark-mode .composer-body .form-control {
    background: #2a2a2a;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .composer-body .form-control:focus {
    border-color: var(--spiritual-gold);
    background: #2a2a2a;
}

body.dark-mode .composer-body .form-control::placeholder {
    color: #888;
}

body.dark-mode .char-count {
    color: #cccccc;
}

body.dark-mode .media-upload-area {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .media-upload-area:hover {
    background: #333;
    border-color: var(--spiritual-gold);
}

body.dark-mode .upload-placeholder {
    color: #cccccc;
}

body.dark-mode .upload-placeholder i {
    color: #888;
}

body.dark-mode .media-preview {
    background: #2a2a2a;
}

body.dark-mode .media-preview-item {
    background: #333;
    border-color: #444;
}

body.dark-mode .remove-media {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .remove-media:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .composer-footer {
    background: #1a1a1a;
    border-top-color: #444;
}

body.dark-mode .composer-footer .btn-secondary {
    background: #444;
    color: #ffffff;
    border-color: #555;
}

body.dark-mode .composer-footer .btn-secondary:hover {
    background: #555;
    border-color: #666;
}

body.dark-mode .composer-footer .btn-primary {
    background: var(--spiritual-gold);
    color: #000000;
}

body.dark-mode .composer-footer .btn-primary:hover {
    background: #f4e76e;
}

body.dark-mode .composer-footer .btn-primary:disabled {
    background: #555;
    color: #888;
}

body.dark-mode .checkbox-wrapper {
    color: #cccccc;
}

body.dark-mode .checkbox-wrapper input[type="checkbox"] {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--spiritual-gold);
    border-color: var(--spiritual-gold);
}

body.dark-mode .checkmark {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--spiritual-gold);
    border-color: var(--spiritual-gold);
}

body.dark-mode .checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    border-color: #000000;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .spiritual-post {
        border: 2px solid var(--spiritual-gold);
    }
    
    .action-btn:hover {
        outline: 2px solid var(--spiritual-gold);
    }
    
    .nav-item.active {
        outline: 1px solid var(--spiritual-gold);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-prayer-btn:hover {
        transform: none;
    }
    
    .spiritual-post:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.nav-item:focus,
.action-btn:focus,
.tab-item:focus,
.floating-prayer-btn:focus {
    outline: 2px solid var(--spiritual-gold);
    outline-offset: 2px;
}

/* Post Modal Styles */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    -webkit-overflow-scrolling: touch;
}

.modal-post-section {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-comments-section {
    width: 100%;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

/* Right side content container */
.modal-right-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* User info section - fixed at top */
.modal-user-info-section {
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.modal-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-user-details {
    display: flex;
    flex-direction: column;
}

.modal-username {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.modal-post-time {
    font-size: 0.8rem;
    color: #999;
}

/* Post content section */
.modal-post-content-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.modal-post-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.modal-post-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* ===== SIMPLE VERTICAL MODAL LAYOUT ===== */

/* Modal content - full width, vertical layout with single scroll */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    background: white;
}

/* Modal post section - contains the full post card */
.modal-post-section {
    flex: none;
    background: white;
    padding: 20px;
}

/* Modal post card - same as feed but full width */
.modal-post-card {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    border: none;
    background: white;
    border-radius: 0;
}

/* Image Carousel Styles */
.post-image-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-nav i {
    font-size: 14px;
}

/* Modal comments section - below the post card */
.modal-comments-section {
    flex: none;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
}

/* Comments section - scrollable */
.modal-comments-section-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comments-header {
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.comments-header h4 {
    margin: 0 0 8px 0;
    color: var(--spiritual-purple);
    font-size: 1.1rem;
    font-weight: 600;
}

.comments-count {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.comments-list {
    flex: none;
    padding: 20px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-comments i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-comments p {
    margin: 8px 0 4px 0;
    font-weight: 500;
}

.no-comments small {
    font-size: 0.8rem;
}

.comment-input-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.comment-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.9rem;
    outline: none;
    resize: none;
    min-height: 36px;
    max-height: 120px;
    transition: height 0.2s ease;
    line-height: 1.4;
    font-family: inherit;
    overflow-y: hidden;
    border-radius: 0;
    box-sizing: border-box;
}

.comment-input::placeholder {
    color: #999;
}

.comment-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--spiritual-gold);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 1rem;
}

.comment-send-btn:hover {
    background: #f4e76e;
    transform: scale(1.05);
}

/* Comment Items */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.comment-time {
    font-size: 0.75rem;
    color: #999;
}

.comment-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.comment-action {
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.comment-action:hover {
    color: var(--spiritual-gold);
}

/* Comment Edit Styles */
.comment-edit-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.comment-edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.comment-edit-btn:hover {
    background: #f0f0f0;
    color: var(--spiritual-gold);
}

.comment-text-container {
    margin-bottom: 8px;
}

.comment-edit-container {
    margin-bottom: 8px;
}

.comment-edit-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
}

.comment-edit-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 0;
    font-size: 0.9rem;
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 100px;
    transition: height 0.2s ease;
    line-height: 1.4;
    font-family: inherit;
    overflow-y: hidden;
    border-radius: 0;
    box-sizing: border-box;
}

.comment-edit-buttons {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.comment-save-btn,
.comment-cancel-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.comment-save-btn {
    background: var(--spiritual-gold);
    color: #000;
}

.comment-save-btn:hover {
    background: #f4e76e;
    transform: scale(1.05);
}

.comment-cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.comment-cancel-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.05);
}

/* Post Composer Modal Styles */
.post-composer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.post-composer-modal.active {
    display: flex;
}

.post-composer-modal .modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.post-composer-modal.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.post-composer-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.composer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.composer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.composer-body .form-group {
    margin-bottom: 20px;
}

.composer-body .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.composer-body .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.composer-body .form-control:focus {
    outline: none;
    border-color: var(--spiritual-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.composer-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.media-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.media-upload-area:hover {
    border-color: var(--spiritual-gold);
    background: #fff8e1;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #999;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.media-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.remove-media:hover {
    background: rgba(0, 0, 0, 0.9);
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.composer-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.composer-footer .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.composer-footer .btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.composer-footer .btn-primary {
    background: var(--spiritual-gold);
    color: #000;
}

.composer-footer .btn-primary:hover {
    background: #f4e76e;
    transform: translateY(-1px);
}

.composer-footer .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.composer-footer .btn.loading .btn-text {
    display: none;
}

.composer-footer .btn.loading .btn-loading {
    display: inline-block;
}

.composer-footer .btn .btn-loading {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .post-composer-modal .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .composer-header,
    .composer-body,
    .composer-footer {
        padding: 16px;
    }
    
    .composer-header h3 {
        font-size: 1.1rem;
    }
    
    .media-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .composer-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .composer-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== REMOVED OLD MODAL STYLES - USING NEW SEPARATE STRUCTURE ===== */

/* Modal Loading State */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.modal-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--spiritual-gold);
}

/* Modal Error State */
.modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.2rem;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.modal-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

/* Modal Text Content Styles */
.modal-text-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: white;
    color: #333;
}

.modal-post-info {
    margin-bottom: 30px;
}

.modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-user-details {
    display: flex;
    flex-direction: column;
}

.modal-username {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.modal-post-time {
    font-size: 0.8rem;
    color: #999;
}

.modal-post-text h3 {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.modal-post-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Mobile Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
        max-height: none;
        transform: none;
        margin: 0;
    }
    
    .post-modal.active .modal-container {
        transform: none;
    }
    
    .modal-content {
        flex-direction: column;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-post-section {
        flex: none;
        min-height: 200px;
        padding: 0;
        width: 100%;
    }
    
    .modal-comments-section {
        width: 100%;
        flex: 1;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-loading,
    .modal-error {
        height: 100vh;
        width: 100vw;
    }
    
    .modal-text-content {
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-user-info {
        margin-bottom: 15px;
    }
    
    .modal-post-text h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .modal-post-text p {
        font-size: 0.9rem;
    }
    
    .comments-header {
        padding: 16px 20px 12px 20px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .comments-list {
        padding: 12px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comment-input-section {
        padding: 12px 20px 20px 20px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.3);
        color: white;
    }
}

/* Authentication Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal .modal-container {
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.active .modal-container {
    transform: scale(1);
}

.auth-modal .modal-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--spiritual-black);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--spiritual-black);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--spiritual-gold);
    box-shadow: 0 0 0 3px rgba(252, 240, 171, 0.2);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--spiritual-black);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--spiritual-gold);
    border-color: var(--spiritual-gold);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--spiritual-black);
    font-size: 0.7rem;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #0056b3;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--spiritual-gold);
    border: none;
    border-radius: 8px;
    color: var(--spiritual-black);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    background: #f0e595;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 240, 171, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn .btn-loading {
    display: none;
}

.auth-submit-btn.loading .btn-text {
    display: none;
}

.auth-submit-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Mobile responsive for auth modal */
@media (max-width: 768px) {
    .auth-modal .modal-container {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .auth-modal .modal-content {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.5);
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-modal .modal-container {
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: white;
    border-radius: 0;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-modal.active .modal-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.search-header h3 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--spiritual-purple);
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    padding: 16px 20px;
    background: white;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--spiritual-gold);
}

.search-icon {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.search-tabs {
    display: flex;
    padding: 0 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.search-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-tab.active {
    color: var(--spiritual-purple);
    border-bottom-color: var(--spiritual-gold);
}

.search-tab:hover {
    color: var(--spiritual-purple);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.search-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--spiritual-gold);
}

.search-content {
    padding: 20px;
}

.search-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.search-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.search-placeholder p {
    font-size: var(--text-base);
    margin: 0;
}

.search-no-results {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.search-no-results p {
    font-size: var(--text-lg);
    margin: 0 0 0.5rem 0;
    font-weight: var(--font-medium);
}

.search-no-results small {
    color: #999;
}

.search-error {
    text-align: center;
    color: #dc3545;
    padding: 40px 20px;
}

.search-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--spiritual-gold);
}

.search-result-item .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.search-result-item .result-content {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-title {
    margin: 0 0 4px 0;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--spiritual-purple);
    line-height: var(--leading-tight);
}

.search-result-item .result-subtitle {
    margin: 0 0 8px 0;
    font-size: var(--text-sm);
    color: #666;
    line-height: var(--leading-normal);
}

.search-result-item .result-excerpt {
    margin: 0;
    font-size: var(--text-sm);
    color: #444;
    line-height: var(--leading-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-item .verified-badge {
    display: inline-block;
    margin-left: 8px;
    color: var(--spiritual-gold);
}

/* Mobile search modal adjustments */
@media (max-width: 768px) {
    .search-modal .modal-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .search-header {
        padding: 12px 16px;
    }
    
    .search-header h3 {
        font-size: var(--text-lg);
    }
    
    .search-input-wrapper {
        padding: 12px 16px;
    }
    
    .search-tabs {
        padding: 0 16px;
    }
    
    .search-content {
        padding: 16px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item .user-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
}

/* Print Styles */
@media print {
    .mobile-bottom-nav,
    .floating-prayer-btn,
    .category-tabs,
    .post-actions,
    .post-modal,
    .auth-modal,
    .search-modal {
        display: none !important;
    }
    
    .spiritual-post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .main-content {
        padding-bottom: 0;
    }
}