/* Custom CSS for Prācyavīkṣā (प्राच्यवीक्षा) e-Journal */

:root {
    /* Color Palette */
    --burgundy-dark: #3a0d14;
    --burgundy: #6b1426;
    --burgundy-light: #8b2635;
    --gold: #cca43b;
    --gold-light: #e5c158;
    --gold-bg: rgba(204, 164, 59, 0.08);
    
    /* Neutral Colors - Light Mode */
    --bg-light: #fdfcf7;
    --card-bg-light: #ffffff;
    --text-primary-light: #1e1e1c;
    --text-secondary-light: #5c5c56;
    --border-light: rgba(107, 20, 38, 0.08);
    
    /* Neutral Colors - Dark Mode */
    --bg-dark: #120e0f;
    --card-bg-dark: #1c1618;
    --text-primary-dark: #f5f0f1;
    --text-secondary-dark: #b8acae;
    --border-dark: rgba(204, 164, 59, 0.15);

    /* Dynamic mappings (default to light mode) */
    --bg-current: var(--bg-light);
    --card-bg-current: var(--card-bg-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --border-current: var(--border-light);
    --nav-bg: rgba(58, 13, 20, 0.95);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-cinzel: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --bg-current: var(--bg-dark);
    --card-bg-current: var(--card-bg-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --border-current: var(--border-dark);
    --nav-bg: rgba(28, 22, 24, 0.96);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-current);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
    font-weight: 600;
}

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

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

/* Navigation */
.navbar-custom {
    background-color: var(--nav-bg);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    padding: 0.8rem 1rem;
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-custom .navbar-brand img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background-color: #fff;
    padding: 2px;
}

.navbar-custom .brand-text {
    color: #ffffff;
}

.navbar-custom .brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.navbar-custom .brand-subtitle {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.navbar-custom .nav-link {
    color: #f3f4f6 !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.015em;
    margin: 0 1px;
    padding: 5px 7px !important;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--gold-light) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, #500e19 100%);
    color: #ffffff;
    padding: 6rem 0 5rem 0;
    border-bottom: 4px solid var(--gold);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--gold) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
}

.hero-logo {
    max-width: 140px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.hero-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-sanskrit-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.motto-box {
    display: inline-block;
    border-top: 1px solid rgba(204, 164, 59, 0.3);
    border-bottom: 1px solid rgba(204, 164, 59, 0.3);
    padding: 8px 30px;
    margin-bottom: 1.5rem;
}

.motto-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    font-size: 1.2rem;
    margin: 0;
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.section-title-container {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Cards & Layout */
.custom-card {
    background-color: var(--card-bg-current);
    border: 1px solid var(--border-current);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(204, 164, 59, 0.3);
}

.journal-cover-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-current);
    transition: var(--transition-smooth);
}

.journal-cover-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Abstract Accordion & Tabs */
.abstract-card {
    border-left: 4px solid var(--burgundy) !important;
    background-color: var(--card-bg-current);
    transition: var(--transition-smooth);
}

.abstract-card:hover {
    border-left-color: var(--gold) !important;
}

.keyword-badge {
    background-color: var(--gold-bg);
    color: var(--text-primary);
    border: 1px solid rgba(204, 164, 59, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.keyword-badge:hover {
    background-color: var(--gold);
    color: #ffffff;
}

/* Advisory Board and Editorial Board Cards */
.board-card {
    padding: 1.5rem;
    text-align: center;
}

.board-card .board-icon {
    font-size: 2.2rem;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.board-card .board-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.board-card .board-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.board-card .board-dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Guidelines Sidebar Nav */
.guidelines-nav .nav-link {
    color: var(--text-primary);
    border-left: 3px solid transparent;
    padding: 12px 18px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition-smooth);
    background-color: rgba(0, 0, 0, 0.02);
    margin-bottom: 5px;
}

.guidelines-nav .nav-link:hover {
    background-color: rgba(204, 164, 59, 0.05);
    border-left-color: rgba(204, 164, 59, 0.5);
}

.guidelines-nav .nav-link.active {
    color: var(--burgundy);
    background-color: var(--gold-bg);
    border-left: 3px solid var(--burgundy);
    font-weight: 600;
}

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-custom th {
    background-color: var(--burgundy);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 500;
    padding: 14px 16px;
    border: none;
}

.table-custom th:first-child {
    border-top-left-radius: 8px;
}

.table-custom th:last-child {
    border-top-right-radius: 8px;
}

.table-custom td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-current);
    background-color: var(--card-bg-current);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.table-custom tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table-custom tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.table-custom tr:hover td {
    background-color: rgba(204, 164, 59, 0.04);
}

/* Form Styles */
.form-control-custom {
    background-color: var(--card-bg-current);
    border: 1px solid var(--border-current);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background-color: var(--card-bg-current);
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 20, 38, 0.15);
    color: var(--text-primary);
}

/* Buttons */
.btn-burgundy {
    background-color: var(--burgundy);
    border: 1px solid var(--burgundy);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-burgundy:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-burgundy {
    background-color: transparent;
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-outline-burgundy:hover {
    background-color: var(--burgundy);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
footer.site-footer {
    background-color: var(--burgundy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--gold);
    font-size: 0.9rem;
}

footer.site-footer a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer.site-footer .footer-title {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(204, 164, 59, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-sanskrit-title {
        font-size: 1.8rem;
    }
    
    .navbar-custom .brand-title {
        font-size: 1.1rem;
    }
}
