:root {
    --bg-cream: #fdfaf3;
    --nav-blue: #0A1E44;
    --gold: #C5A059;
    --gold-hover: #B48E47;
    --sunlight-gold: #FFD700;
    --midnight-blue: #051433;
    --hope-blue: #235BA8;
    --hope-blue-hover: #1A4682;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

.text-midnight {
    color: var(--midnight-blue) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

body {
    background: linear-gradient(180deg, #fdfaf3 0%, #f7f3e9 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #0A1E44 0%, #1B3664 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: white !important;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background: url('../images/hero_banner_v2.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-post {
    background-color: var(--gold);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-post:hover {
    background-color: var(--gold-hover);
    color: white;
    transform: translateY(-2px);
}

/* Global Button Styles */
.btn-gold {
    background-color: var(--gold);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: white !important;
    transform: translateY(-2px);
}

.btn-hope-blue {
    background-color: var(--hope-blue);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hope-blue:hover {
    background-color: var(--hope-blue-hover);
    color: white !important;
    transform: translateY(-2px);
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr 300px;
    }

    .sidebar-left {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

/* Sidebar */
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.sidebar-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    object-fit: cover;
}

.user-info .name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Prayer Wall */
.wall-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.prayer-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.prayer-card .user-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.prayer-card .body {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.prayer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-prayed {
    background-color: var(--gold);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-prayed:hover {
    background-color: var(--gold-hover);
}

.btn-hope {
    background-color: var(--hope-blue);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-hope:hover {
    background-color: var(--hope-blue-hover);
}

/* Praise Reports */
.praise-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.praise-item:last-child {
    border-bottom: none;
}

.praise-text {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--midnight-blue);
}

.auth-card form p {
    margin-bottom: 20px;
}

.auth-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-card input.form-control,
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.auth-card input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.auth-card .helptext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.auth-card .errorlist {
    color: #dc3545;
    font-size: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--hope-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}