﻿/* ================================================
   TanhKhong - Lotus Light Theme
   Traditional parchment & ornate temple aesthetic
   Warm browns, golds, reds on antique paper
   ================================================ */

:root {
    /* Backgrounds — parchment / antique paper */
    --bg-dark: #f0e4cc;
    --bg-primary: #f5ead4;
    --bg-secondary: #e8d8b8;
    --bg-card: rgba(245, 234, 212, 0.95);
    --bg-glass: rgba(240, 228, 204, 0.9);

    /* Accent colors — warm traditional */
    --gold: #a0792a;
    --gold-light: #c49b3a;
    --gold-dark: #7a5a1e;
    --red-primary: #8b1a1a;
    --red-light: #a83232;
    --red-accent: #c41e3a;

    /* Text — dark warm tones */
    --text-primary: #3a2415;
    --text-secondary: #5c3d28;
    --text-muted: #8a7058;

    /* Borders & Shadows */
    --border-gold: rgba(160, 121, 42, 0.35);
    --border-red: rgba(139, 26, 26, 0.25);
    --shadow-gold: 0 2px 15px rgba(160, 121, 42, 0.15);
    --shadow-red: 0 2px 15px rgba(139, 26, 26, 0.1);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #7a5a1e, #a0792a, #c49b3a);
    --gradient-red: linear-gradient(135deg, #5a1010, #8b1a1a, #5a1010);
    --gradient-bg: linear-gradient(180deg, #f5ead4 0%, #f0e4cc 50%, #e8d8b8 100%);
}

/* ============================================
   Body & General
   ============================================ */
body {
    background: var(--gradient-bg) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
}

/* Override dark overlay from style.css — replace with warm light-appropriate tint */
body::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(160, 121, 42, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(160, 121, 42, 0.03) 0%, transparent 55%) !important;
}

/* ============================================
   Navbar — dark brown/maroon top bar
   ============================================ */
.site-nav {
    background: linear-gradient(180deg, #3a1a0e, #2a1208) !important;
    border-bottom: 3px solid var(--gold) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
}

.site-nav .nav-link {
    color: #e8d4a8 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--gold-light) !important;
}

.nav-logo h1 {
    color: var(--gold-light) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-logo span {
    color: var(--gold) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(180deg, #e8d8b8, #f0e4cc) !important;
    border-bottom: 2px solid var(--border-gold);
}

.hero-section::before {
    background: radial-gradient(ellipse at center, rgba(139, 26, 26, 0.04) 0%, transparent 70%) !important;
}

/* ============================================
   Section Titles — ornate with decorative lines
   ============================================ */
.section-title {
    color: var(--text-primary) !important;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '✦';
    display: block;
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    margin-top: 10px;
    letter-spacing: 12px;
}

.section-subtitle {
    color: var(--text-secondary) !important;
}

/* ============================================
   Cards — ornate border style
   ============================================ */
.feature-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 4px !important;
    box-shadow:
        0 0 0 1px rgba(160, 121, 42, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 0 30px rgba(160, 121, 42, 0.03) !important;
    position: relative;
}

.feature-card::before {
    background: linear-gradient(to bottom, rgba(160, 121, 42, 0.08), transparent) !important;
}

.feature-card:hover {
    box-shadow:
        0 0 0 1px var(--gold),
        0 8px 30px rgba(160, 121, 42, 0.15),
        inset 0 0 30px rgba(160, 121, 42, 0.05) !important;
    border-color: var(--gold-light) !important;
}

.fortune-mode {
    background: var(--bg-card) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.fortune-mode:hover {
    border-color: var(--gold-light) !important;
    box-shadow: 0 6px 25px rgba(160, 121, 42, 0.12) !important;
}

/* ============================================
   Forms
   ============================================ */
.form-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gold) !important;
    border-radius: 4px !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(160, 121, 42, 0.3) !important;
    color: var(--text-primary) !important;
    border-radius: 4px !important;
}

.form-control:focus {
    border-color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(160, 121, 42, 0.1) !important;
}

/* ============================================
   Buttons — ornate traditional style
   ============================================ */
.btn-primary {
    background: var(--gradient-red) !important;
    color: var(--gold-light) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 4px !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a1414, #9b2020, #6a1414) !important;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3) !important;
}

.btn-outline {
    border: 2px solid var(--gold) !important;
    color: var(--gold-dark) !important;
    border-radius: 4px !important;
}

.btn-outline:hover {
    background: var(--gold) !important;
    color: #fff !important;
}

/* ============================================
   Notes Section
   ============================================ */
.notes-section {
    background: rgba(232, 216, 184, 0.5) !important;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

/* ============================================
   Result Page
   ============================================ */
.result-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 4px !important;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-info-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gold) !important;
    border-radius: 4px !important;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gold) !important;
    border-radius: 4px !important;
}

.blog-card:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 6px 25px rgba(160, 121, 42, 0.12) !important;
}

.blog-sidebar-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gold) !important;
    border-radius: 4px !important;
}

/* ============================================
   Footer — dark traditional 
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, #2a1208, #1c0c05) !important;
    color: #e0cca8 !important;
    border-top: 3px solid var(--gold) !important;
}

.site-footer h4 {
    color: var(--gold-light) !important;
}

.site-footer a {
    color: #d4c0a0 !important;
}

.site-footer a:hover {
    color: var(--gold-light) !important;
}

.footer-bottom {
    border-color: rgba(160, 121, 42, 0.25) !important;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(160, 121, 42, 0.35);
    border-radius: 4px;
}

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

/* ============================================
   Decorative border corners (ornate frame)
   ============================================ */
.features-section,
.notes-section {
    position: relative;
}

.features-section::before,
.features-section::after {
    content: '❋';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(160, 121, 42, 0.2);
    z-index: 1;
}

.features-section::before {
    top: 20px;
    left: 20px;
}

.features-section::after {
    bottom: 20px;
    right: 20px;
}

/* ============================================
   Slider adjustments
   ============================================ */
.slider-section .slider-overlay {
    background: linear-gradient(to top, rgba(240, 228, 204, 0.9), transparent) !important;
}