/* Mengimpor Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* Warm Restoration Theme - Earth Tones */
:root {
    /* Primary Colors */
    --burnt-sienna: #36454F;
    --sand-beige: #E5D3B3;
    --charcoal: #36454F;
    --dusty-rose: #DCAE96;
    
    /* Additional Earth Tones */
    --terracotta: #C87A5A;
    --warm-gray: #8B7D6B;
    --cream: #FDFBF7; /* Sedikit dicerahkan dari #F5EDE0 agar kontras teks lebih baik */
    --olive: #6B705C;
    --clay: #B4654A;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, var(--burnt-sienna) 0%, var(--clay) 100%);
    --gradient-soft: linear-gradient(135deg, var(--sand-beige) 0%, var(--cream) 100%);
    
    /* Shadows (Kecoklatan/Warm Shadows) */
    --shadow-sm: 0 2px 8px rgba(160, 82, 45, 0.08);
    --shadow-md: 0 5px 20px rgba(160, 82, 45, 0.12);
    --shadow-lg: 0 10px 30px rgba(160, 82, 45, 0.15);
}

/* =========================================
   BOOTSTRAP UTILITY OVERRIDES
   ========================================= */
.text-primary { color: var(--burnt-sienna) !important; }
.bg-primary { background-color: var(--burnt-sienna) !important; }
.bg-light { background-color: var(--sand-beige) !important; }
.bg-dark { background-color: var(--charcoal) !important; }
.text-muted { color: var(--warm-gray) !important; }

/* =========================================
   GLOBAL STYLES
   ========================================= */
body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Lora', Georgia, serif;
    color: var(--charcoal); /* Warna default gelap, text-primary digunakan untuk highlight */
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Custom Divider */
.divider {
    height: 3px;
    width: 60px;
    background: var(--gradient-warm);
    border-radius: 5px;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
    background: var(--gradient-warm) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--sand-beige);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-warm);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--clay);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--burnt-sienna);
    color: var(--burnt-sienna);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-warm);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: white;
    border: 1px solid rgba(160, 82, 45, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover, .hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--charcoal);
    font-weight: 700;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(160, 82, 45, 0.1);
}

/* Daily Quote Section */
.daily-quote {
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.quote-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--burnt-sienna);
}

.quote-text {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.6;
}

.blockquote-footer {
    color: var(--warm-gray);
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(160, 82, 45, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Post Cards Image Hover */
.post-card .card-img-top {
    transition: transform 0.5s ease;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badges */
.badge.bg-primary {
    background: var(--dusty-rose) !important;
    color: var(--charcoal);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Sidebar Elements */
.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(160, 82, 45, 0.1);
}

.sidebar-title {
    color: var(--burnt-sienna);
    border-bottom: 2px solid var(--burnt-sienna);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list a {
    color: var(--charcoal);
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--burnt-sienna);
    padding-left: 0.75rem;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: rgba(229, 211, 179, 0.4);
    color: var(--burnt-sienna);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag-cloud a:hover {
    background: var(--burnt-sienna);
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination .page-link {
    color: var(--burnt-sienna);
    background: white;
    border: 1px solid rgba(160, 82, 45, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-warm);
    border-color: var(--burnt-sienna);
    color: white;
}

.pagination .page-link:hover {
    background: var(--sand-beige);
    color: var(--charcoal);
}

/* Footer */
footer {
    background: var(--charcoal) !important;
    border-top: 5px solid var(--burnt-sienna);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--burnt-sienna) !important;
    transform: translateX(3px);
}

/* Forms */
.form-control, .form-select {
    background: white;
    border: 1px solid rgba(160, 82, 45, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--charcoal);
}

.form-control:focus, .form-select:focus {
    border-color: var(--burnt-sienna);
    box-shadow: 0 0 0 0.25rem rgba(160, 82, 45, 0.25);
}

/* Alert */
.alert-success {
    background: rgba(107, 112, 92, 0.1);
    border-left: 4px solid var(--olive);
    color: var(--charcoal);
}

.alert-info {
    background: rgba(220, 174, 150, 0.15);
    border-left: 4px solid var(--dusty-rose);
    color: var(--charcoal);
}

/* Post Content Formatting */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.post-content h2, .post-content h3 {
    color: var(--burnt-sienna);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 4px solid var(--burnt-sienna);
    background: rgba(229, 211, 179, 0.3);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a4a4a;
    font-family: 'Lora', serif;
}

.post-content img {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--burnt-sienna);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clay);
}

/* Selection */
::selection {
    background: var(--dusty-rose);
    color: var(--charcoal);
}