/* assets/css/style.css */
:root {
    --primary-color: #dc3545;
    --secondary-color: #e83e8c;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 25px;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-card {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.confessions-cta {
    border-radius: 10px;
    color: white;
}

.category-link .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.category-link .card:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.category-link .card:hover h5,
.category-link .card:hover p {
    color: white !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.confession-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Custom scrollbar */
.confession-content::-webkit-scrollbar {
    width: 5px;
}

.confession-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.confession-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.confession-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .featured-posts .card-img-top {
        height: 150px;
    }
}



/* Image styling */
.bg-gradient-featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.featured-image img {
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: scale(1.01);
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.blog-card .card-img-top {
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Post content images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-content img.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
    max-width: 50%;
}

.post-content img.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    max-width: 50%;
}

.post-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

/* Clear floats */
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Image upload preview */
.preview-container {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s;
}

.preview-container:hover {
    border-color: var(--primary-color);
}