/**
 * Unified Styles for dineshpokhrel.com
 * Consistent colors, typography, and corporate styling across all pages
 */

/* ===== Typography Import (must be at top) ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ===== Color Palette ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --accent-blue: #3498db;
    --accent-green: #4CAF50;
    --accent-purple: #9C27B0;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* ===== Header Styles ===== */
.site-header {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--accent-blue) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue) !important;
}

/* ===== Footer Styles ===== */
.site-footer {
    background: var(--primary-gradient) !important;
    color: var(--text-light);
    margin-top: 4rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-title span {
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 5px;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--accent-blue);
}

/* ===== Card Styles ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-white);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===== Button Styles ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* ===== Section Styles ===== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* ===== Chapter Info Card Styles ===== */
.chapter-info-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chapter-info-card .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.chapter-name-hi {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.chapter-name-transliterated {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.chapter-name-translated {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-bottom: 1rem;
}

.chapter-summary {
    color: #555;
    line-height: 1.8;
    margin-top: 1rem;
}

/* ===== Sloka Grid Styles ===== */
.sloka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    padding: 1rem 0;
}

.sloka-link {
    display: inline-block;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--accent-blue);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: var(--bg-white);
}

.sloka-link:hover {
    background-color: #e3f2fd;
    color: #1a73e8;
    border-color: #bbdefb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sloka-link.active {
    background-color: var(--accent-blue);
    color: white;
    border-color: #2980b9;
    box-shadow: var(--shadow-sm);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .sloka-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .sloka-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 0.4rem;
    }

    section {
        padding: 2rem 0;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .sloka-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }

    .sloka-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* ===== Dropdown Hover Functionality ===== */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    margin-top: 0 !important;
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
}
