/* Blog Post Styling */
.blog-post-container {
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    line-height: 1.8;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.post-title {
    font-size: 2.5rem;
    margin: 10px 0 10px;
    text-align: center;
    color: #000000;
    font-weight: 700;
}

.post-meta {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-style: italic;
}

.post-banner {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #111;
    font-weight: 600;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

.language-btn {
    background: #222222;
    color: #f2e2ce;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 34, 34, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
}

.language-btn:hover {
    background: #ffc42e;
    color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 196, 46, 0.4);
}

.language-btn:active {
    transform: translateY(0);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #222222;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    border: 1px solid #ffc42e;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-content a {
    color: #f2e2ce;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-bottom: 1px solid #444444;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #ffc42e;
    color: #222222;
    transform: translateX(5px);
}

.dropdown-content a:active {
    background-color: #ffc42e;
    color: #222222;
}

/* Language-specific content styling */
.post-content-main {
    margin-top: 20px;
}

.post-content-main[lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    direction: ltr;
}

.post-content-main[lang="rj"] {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    direction: ltr;
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin: 15px 0;
    }
    
    .language-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dropdown-content {
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Dark mode support for language switcher */
[data-theme="dark"] .dropdown-content {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .dropdown-content a {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .dropdown-content a:hover {
    background-color: #4a5568;
    color: #667eea;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #222;
    font-weight: 500;
}

.post-content ul {
    padding-left: 25px;
    list-style-type: disc;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    border-left: 4px solid #f39c12;
    background-color: #fffbe6;
    padding: 20px 25px;
    font-style: italic;
    color: #444;
    margin: 30px 0;
    border-radius: 6px;
    font-size: 1.1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.language-btn {
    background-color: #f39c12;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.language-btn:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-top: 5px;
    z-index: 10;
}

.language-switcher:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #f39c12;
}

/* References */
.ref-link {
    position: relative;
    color: #c62828;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ref-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.ref-link::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    display: none;
    z-index: 10;
}

.ref-link:hover::after {
    display: block;
}

.references {
    background-color: #f9f9f9;
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 30px;
    list-style-type: decimal;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.references li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.references a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.references a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-container {
        margin: 15px 15px 40px;
        padding: 20px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-banner {
        max-height: 300px;
    }

    .language-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.8rem;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-banner {
        max-height: 250px;
    }
}