/* General styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Mukta', sans-serif;
    background-color: #1a1a1a; /* Deep Charcoal Black */
    color: #f2e3b8; /* Soft Beige */
    background-image: url('/Assets/backgod.webp'); /* Optional background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header */
.navigation {
    background: linear-gradient(90deg, #151515, #292929);
    color: #fafafa;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid #F39C12;
    box-sizing: border-box;
    flex-wrap: wrap; /* Ensures wrapping for smaller screens */
}

.navigation .logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    flex-grow: 1; /* Allows logo to take up available space */
}

.navigation .logo img {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
}

.navigation .items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-grow: 2; /* Ensure that items take up remaining space */
    justify-content: end; /* Center the navigation items */
}

.navigation .item {
    font-size: 18px;
    font-weight: 500;
    color: #fafafa; /* Color for anchor links */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s, transform 0.3s;
}

.navigation .item:hover {
    color: #F39C12; /* Hover color for anchor links */
    transform: translateY(-3px);
}

.navigation .button-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-grow: 1; /* Allows buttons to align within their space */
}

/* Button Styles */
.navigation .button {
    padding: 12px 26px;
    background-color: #F39C12;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s, transform 0.2s;
}

.navigation .button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.navigation .button.secondary {
    background-color: transparent;
    color: #fafafa;
    border: 2px solid #F39C12;
}

.navigation .button.secondary:hover {
    background-color: #F39C12;
    color: white;
}

/* Container */
.container {
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    position: relative;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.85); /* Transparent dark overlay for better readability */
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7); /* Soft shadow for depth */
    border-radius: 15px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #ffcc00; /* Saffron */
    font-size: 2.2em; /* Reduced from 3em */
    margin: 0;
    margin-bottom: 20px;
}

/* Article */
article h1{
    text-align: center;
}
article h2 {
    color: #d4a017; /* Turmeric Gold */
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #bb4777; /* Deep Lotus Pink */
    padding-bottom: 10px;
}

article p {
    line-height: 1.8;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

/* Links */
a {
    color: #ffcc00; /* Saffron */
    text-decoration: none;
    border-bottom: none; /* Remove underline */
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

a:hover {
    color: #d4a017; /* Turmeric Gold */
    text-shadow: 0 0 8px rgba(212, 160, 23, 0.3);
}

a:hover::after {
    width: 100%;
}

/* Footer */
.footer-space {
    height: 120px; /* Match this to the footer height */
    width: 100%;
}

.footer {
    background-color: #151515;
    color: #fafafa;
    padding: 70px 20px;
    position: relative; /* Make the footer fixed */
    bottom: 0px; /* Position it at the bottom */
    width: 100%; /* Ensure the footer stretches across the entire width */
    display: flex;
    justify-content:space-around;
    align-items: center;
    flex-wrap: auto;
    z-index: 1000; /* Keep it above other content */
    box-sizing: border-box; /* Ensures padding is included in the total width */
}
.footer .logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
}

.footer .logo img {
    margin-right: 12px;
    width: 45px;
    height: 45px;
}

.footer .items {
    display: flex;
    gap: 48px;
}

.footer .item {
    font-size: 18px;
    font-weight: 500;
    color: #fafafa;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.footer .item:hover {
    color: #F39C12;
    transform: translateY(-2px);
}

.footer .social-icons {
    display: flex;
    gap: 16px;
}

.footer .icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #333;
    transition: background-color 0.3s, transform 0.2s;
}

.footer .icon img {
    width: 20px;
}

.footer .icon:hover {
    background-color: #F39C12;
    transform: scale(1.1);
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-top: 40px;
    opacity: 0.8;
}

/* Utility */
.centered {
    text-align: center;
}

.header-space {
    margin-top: 100px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fafafa;
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }

    .images {
        flex-direction: column;
    }

    .image {
        width: 100%;
    }

    .navigation .items,
    .navigation .button-container {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navigation.active .items,
    .navigation.active .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #292929;
        padding: 20px 0;
        gap: 16px;
        z-index: 99;
    }

    .footer .items {
        flex-direction: column;
        gap: 16px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }

    .navigation .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .navigation {
        padding: 15px 20px;
    }

    .navigation .logo {
        font-size: 22px;
    }

    .navigation .logo img {
        width: 35px;
        height: 35px;
    }

    .navigation.active .items {
        top: 65px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .navigation .item {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(243, 156, 18, 0.2);
    }

    .footer {
        padding: 40px 20px;
        text-align: center;
    }

    .footer .logo {
        font-size: 22px;
    }

    article h2 {
        font-size: 1.8em;
    }

    .header-space {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    article h1, article h2 {
        font-size: 1.4em; /* Reduces heading font size for small screens */
    }

    article p {
        font-size: 0.9em; /* Reduces paragraph font size */
        line-height: 1.5; /* Slightly tighter line spacing */
        text-align: left; /* Aligns text for better readability */
    }

    .container {
        padding: 15px; /* Less padding for mobile to make use of the screen space */
    }

    .container {
        padding: 12px;
        margin: 5px;
    }

    article h1 {
        font-size: 1.8em;
    }

    article h2 {
        font-size: 1.4em;
    }

    article p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .sanskrit-text {
        font-size: 1em;
        line-height: 1.6;
    }

    .navigation .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .article-meta {
        font-size: 0.8em;
        flex-wrap: wrap;
    }

    .prev-article,
    .next-article {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .footer .items {
        gap: 24px;
    }

    .footer .item {
        font-size: 16px;
    }

    .footer .social-icons {
        gap: 12px;
    }

    .footer .icon {
        width: 32px;
        height: 32px;
    }
}

/* Add touch-friendly improvements */
@media (hover: none) {
    .navigation .item,
    .footer .item,
    .navigation .button {
        padding: 12px 20px;
    }

    .dropdown-menu button {
        padding: 15px 20px;
    }
}

.stotra-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.verse-container {
    margin-top: 2em;
}

.verse {
    margin-bottom: 2em;
    text-align: center;
}

.sanskrit-text {
    font-size: 1.2em;
    line-height: 1.8;
    color:#f2e3b8; /* Soft Beige */
    ;
}

.main-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1em;
}

.conclusion {
    margin-top: 3em;
    text-align: center;
    font-style: italic;
}

/* Profile Styles */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-photo {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: none;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.profile-photo.visible {
    display: block;
    opacity: 1;
}

#loginBtn {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#loginBtn.visible {
    display: inline-block;
    opacity: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: white;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-menu.show {
    display: block;
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.user-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9em;
    color: #666;
}

.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu button i {
    width: 16px;
    text-align: center;
}

.dropdown-menu button:hover {
    background-color: #f1f1f1;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.toast.success {
    background: #4CAF50;
}

.toast.show {
    opacity: 1;
}

/* Dark mode support */
body.dark-mode .dropdown-menu {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode .dropdown-menu button:hover {
    background: #444;
}

/* Article Metadata */
.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #ffcc00; /* Matches existing saffron color */
    font-family: 'Mukta', sans-serif;
    font-size: 0.9em;
}

.article-meta i {
    margin-right: 8px;
    color: #cb6d51; /* Copper Red from existing theme */
}

.article-meta a {
    color: #ffcc00;
    text-decoration: none;
}

.article-meta a:hover {
    color: #d4a017; /* Turmeric Gold from existing theme */
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 20px 0;
    font-family: 'Mukta', sans-serif;
    font-size: 0.9em;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #cb6d51; /* Copper Red */
}

.breadcrumb a {
    color: #ffcc00; /* Saffron */
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #d4a017; /* Turmeric Gold */
}

.breadcrumb li:last-child {
    color: #f2e3b8; /* Soft Beige from existing theme */
}

/* Article Navigation */
.article-navigation {
    margin: 50px 0 30px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 204, 0, 0.2); /* Saffron with opacity */
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.prev-article,
.next-article {
    color: #ffcc00; /* Saffron */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.prev-article:hover,
.next-article:hover {
    color: #d4a017; /* Turmeric Gold */
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    border-color: #ffcc00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .prev-article,
    .next-article {
        width: 100%;
        justify-content: center;
    }

    .breadcrumb {
        font-size: 0.8em;
    }
}
