/**
 * Additional Main Styles
 *
 * @package DeviFlow
 */

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FULL-WIDTH STICKY HEADER - Always Fixed
   ============================================ */

/* Wrapper for entire header area */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.header-wrapper.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Top bar in sticky header */
.header-wrapper .top-bar {
    width: 100%;
    transition: all 0.3s ease;
}

/* Hide top bar on scroll for more space */
.header-wrapper.compact .top-bar {
    display: none;
}

/* Site header in wrapper */
.header-wrapper .site-header {
    width: 100%;
    background-color: var(--white);
}

/* Navigation in wrapper */
.header-wrapper .main-navigation {
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

/* Spacer to push content below fixed header */
.header-spacer {
    height: 80px; /* Approximate header height - will be calculated by JS */
    width: 100%;
    transition: height 0.3s ease;
}

.header-spacer.compact {
    height: 60px;
}

/* Content container scrolls under header */
.site-content {
    position: relative;
    z-index: 1;
}

/* Legacy sticky styles - kept for fallback */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Alternative: Simple always-sticky without wrapper */
body.sticky-header-enabled .top-bar,
body.sticky-header-enabled .site-header,
body.sticky-header-enabled .main-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
}

body.sticky-header-enabled .top-bar {
    z-index: 1002;
}

body.sticky-header-enabled .site-header {
    z-index: 1001;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.sticky-header-enabled .main-navigation {
    z-index: 1000;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Combined sticky header - all elements together */
body.sticky-header-combined #masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
}

body.sticky-header-combined #site-navigation {
    position: fixed !important;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Search Form Styles */
.search-input-wrapper {
    display: flex;
    position: relative;
}

.search-field {
    padding-right: 50px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Post Type Labels */
.post-type-label {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: var(--spacing-sm);
}

/* Entry Meta Styles */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.entry-meta i {
    color: var(--primary-color);
}

/* Tag Links */
.tag-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.tag-links a {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

.tag-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-2xl) 0;
}

.author-avatar img {
    border-radius: var(--border-radius-full);
}

.author-info {
    flex: 1;
}

.author-name {
    margin-bottom: var(--spacing-xs);
}

.author-name a {
    color: var(--text-color);
}

.author-bio {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.author-link {
    font-weight: 600;
}

/* Post Navigation */
.post-navigation {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--text-color);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    background-color: var(--gray-200);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.share-button:hover {
    color: var(--white);
}

.share-facebook:hover { background-color: #1877f2; }
.share-twitter:hover { background-color: #1da1f2; }
.share-linkedin:hover { background-color: #0077b5; }
.share-pinterest:hover { background-color: #bd081c; }

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Background Sections */
.bg-light {
    background-color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Rounded Image */
.rounded-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* Placeholder Image */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-lg);
    color: var(--white);
    font-size: 4rem;
    opacity: 0.8;
}

/* Page Links */
.page-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}

.page-links a,
.page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.page-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Pagination */
.pagination,
.navigation.pagination {
    margin: var(--spacing-3xl) 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Results Count */
.results-count {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Comments */
.comments-area {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--gray-200);
}

.comments-title {
    margin-bottom: var(--spacing-xl);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment-list .children {
    list-style: none;
    padding-left: var(--spacing-2xl);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.comment-author img {
    border-radius: var(--border-radius-full);
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.comment-content {
    margin-bottom: var(--spacing-md);
}

.comment-reply-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Comment Form */
.comment-form {
    margin-top: var(--spacing-2xl);
}

.comment-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.comment-form-cookies-consent input {
    width: auto;
    margin: 0;
}

/* Widget Styles */
.widget {
    margin-bottom: var(--spacing-2xl);
}

.widget-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-sm);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: var(--spacing-sm);
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Footer Contact List */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

/* Edit Link */
.edit-link {
    display: inline-block;
    margin-top: var(--spacing-md);
}

.edit-link a {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: var(--spacing-sm);
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    background-color: var(--white);
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    padding: var(--spacing-md);
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   TOP BAR STYLES
   ============================================ */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 4px 30px !important;
    font-size: 13px;
    width: 100%;
}

.top-bar > .container {
    max-width: 100%;
    padding: 0 !important;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-contact {
    color: var(--text-color);
}

.top-bar-contact i {
    color: var(--primary-color);
    margin-right: 8px;
}

.top-bar-contact a {
    color: var(--text-color);
    text-decoration: none;
}

.top-bar-contact a:hover {
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #8a639b;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.top-bar-social a:hover {
    background-color: #6d4e7a;
    transform: translateY(-2px);
}

/* Header Top Bar Widget Area */
.top-bar-widgets {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex-shrink: 0;
}

.top-bar-widgets .topbar-widget {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
}

.top-bar-widgets .topbar-widget-title {
    font-weight: 600;
    margin-right: 8px;
    color: var(--text-color);
}

.top-bar-widgets .topbar-widget p {
    margin: 0;
    line-height: 1.4;
}

.top-bar-widgets .topbar-widget a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-widgets .topbar-widget a:hover {
    color: var(--primary-dark);
}

.top-bar-widgets .widget_text,
.top-bar-widgets .widget_custom_html {
    display: flex;
    align-items: center;
}

.top-bar-widgets .textwidget {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-widgets .textwidget i {
    color: var(--primary-color);
}

/* Language Switcher in Top Bar - Same height as social icons */
.top-bar-language {
    display: flex;
    align-items: center;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.top-bar-language .lang-switcher.lang-flags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-language .lang-flag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.top-bar-language .lang-flag-link:hover,
.top-bar-language .lang-flag-link.active {
    opacity: 1;
    transform: translateY(-2px);
}

.top-bar-language .lang-flag-link.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 138, 99, 155), 0.3);
}

.top-bar-language .lang-flag-link .lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.top-bar-language .lang-flag-link .lang-code-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    border-radius: 50%;
}

/* Legacy styles for backward compatibility */
.language-flag {
    display: inline-flex;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-flag:hover,
.language-flag.active {
    opacity: 1;
}

.language-flag img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CENTERED HEADER STYLES
   ============================================ */
.site-header > .container {
    max-width: 100%;
    padding: 0 30px;
}

.header-inner.header-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8px 0;
}

.site-branding.centered {
    text-align: center;
}

.site-logo-text {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 16px;
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
}

.logo-devi {
    font-weight: normal;
}

.logo-flow {
    font-weight: normal;
    margin-left: 5px;
}

.site-branding.centered .custom-logo-link img,
.site-branding.centered .custom-logo {
    max-height: 25px;
    width: auto;
}

/* Logo hover opacity effect */
.custom-logo-link img,
.site-logo-text {
    transition: opacity 0.3s ease;
}

.custom-logo-link:hover img,
.site-logo-text:hover {
    opacity: 0.65;
}

.header-centered .menu-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Centered Navigation Menu */
.main-navigation > .container {
    max-width: 100%;
    padding: 0 30px;
}

.main-navigation .centered-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

/* Header Language Switcher */
.header-language-switcher {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.main-navigation > .container {
    position: relative;
}

.header-language-switcher .uml-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-language-switcher .uml-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-language-switcher .uml-flag:hover,
.header-language-switcher .uml-flag.active {
    opacity: 1;
    transform: scale(1.1);
}

.header-language-switcher .uml-dropdown {
    position: relative;
}

.header-language-switcher .uml-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.header-language-switcher .uml-dropdown-toggle:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.header-language-switcher .uml-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.header-language-switcher .uml-dropdown.open .uml-dropdown-menu {
    display: block;
}

.header-language-switcher .uml-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 13px;
    transition: background 0.2s ease;
}

.header-language-switcher .uml-dropdown-menu a:hover {
    background: var(--gray-100);
}

/* ============================================
   NAVIGATION ICONS (Login/Profile)
   ============================================ */
.nav-container-flex {
    position: relative;
}

.nav-menu-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-icons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

/* Icon + Text Link */
.nav-icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: all 0.2s ease;
}

.nav-icon-link:hover {
    color: var(--primary-color, #7c3aed);
}

.nav-icon-link:hover .nav-icon {
    background: var(--primary-color, #7c3aed);
    color: #fff;
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100, #f8f9fa);
    color: var(--text-color, #333);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 14px;
    height: 14px;
}

.nav-icon-text {
    font-family: var(--font-heading, 'Comfortaa', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Responsive nav-icons */
@media (max-width: 992px) {
    .nav-icons {
        position: static;
        transform: none;
        margin-top: 15px;
        justify-content: center;
    }

    .nav-icon-text {
        display: none;
    }
}

/* ============================================
   AUTH MODAL (Login/Register)
   ============================================ */

/* Modal Overlay - Dark background */
.deviflow-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.deviflow-auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container - Centered, fixed size */
.deviflow-auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 200001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Prevent scrolling issues */
    max-height: none;
    overflow: visible;
}

.deviflow-auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Box */
.auth-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Modal Content */
.auth-modal-content {
    padding: 30px;
}

.auth-form-section h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #1c1d1f;
}

.auth-subtitle {
    margin: 0 0 20px;
    color: #6a6f73;
    font-size: 14px;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1c1d1f;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.auth-form .form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6a6f73;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #7c3aed);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color, #7c3aed);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Form Messages */
.form-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Submit Button */
.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--primary-color, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth:hover {
    background: var(--primary-dark, #5a3d5e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Switch Link */
.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #6a6f73;
}

.auth-switch a {
    color: var(--primary-color, #7c3aed);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   FOOTER NEWSLETTER SECTION
   ============================================ */
.footer-newsletter-section {
    background: #7F8F6A;
    padding: 50px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.footer-newsletter-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
    max-width: 650px;
}

.newsletter-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Practice Cards */
.practice-cards {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.practice-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.practice-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.practice-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.practice-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.practice-card:hover .practice-play-btn {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.practice-play-btn svg {
    margin-left: 3px;
}

.practice-card-title {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Newsletter Form Wrap */
.newsletter-form-wrap {
    margin-top: 0;
}

/* Newsletter Woman Image */
.newsletter-image {
    flex-shrink: 0;
    width: 280px;
    position: relative;
}

.newsletter-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Newsletter Form - LNI Subscribe Shortcode Override */
.footer-newsletter-form.lni-subscribe-form {
    margin: 0;
}

.footer-newsletter-form .lni-subscribe-row {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-newsletter-form .lni-subscribe-email {
    flex: 1;
    min-width: 180px;
    padding: 16px 24px;
    border: none !important;
    border-radius: 0;
    font-size: 15px;
    background: transparent;
    color: #333;
}

.footer-newsletter-form .lni-subscribe-email:focus {
    outline: none;
}

.footer-newsletter-form .lni-subscribe-email::placeholder {
    color: #999;
}

.footer-newsletter-form .lni-subscribe-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-form .lni-subscribe-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%) !important;
}

.footer-newsletter-form .lni-subscribe-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.footer-newsletter-form .lni-subscribe-message.success {
    color: #86efac;
}

.footer-newsletter-form .lni-subscribe-message.error {
    color: #fca5a5;
}

.footer-newsletter-form .lni-subscribe-message.pending {
    color: #fde047;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.site-footer .footer-bottom {
    background: #1a1a2e;
    padding: 10px 0;
    width: 100%;
}

.site-footer .footer-bottom > .container {
    max-width: 100%;
    padding: 0 15px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-languages {
    display: flex;
    gap: 5px;
}

.footer-languages .language-flag {
    opacity: 0.6;
}

.footer-languages .language-flag:hover,
.footer-languages .language-flag.active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 992px) {
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content {
        max-width: 100%;
    }

    .practice-cards {
        justify-content: center;
    }

    .newsletter-image {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    /* Top Bar Mobile */
    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-contact {
        font-size: 13px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-widgets {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .top-bar-widgets .topbar-widget {
        white-space: normal;
        text-align: center;
    }

    .top-bar-language {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 4px;
    }

    /* Header Mobile */
    .site-logo-text {
        font-size: 14px;
    }

    /* Footer Mobile */
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content {
        max-width: 100%;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-subtitle {
        font-size: 15px;
    }

    .practice-cards {
        justify-content: center;
    }

    .practice-card {
        width: 140px;
    }

    .practice-card-image {
        height: 85px;
    }

    .newsletter-image {
        width: 200px;
        margin-top: 20px;
    }

    .footer-newsletter-form .lni-subscribe-row {
        flex-direction: column;
        border-radius: 12px;
    }

    .footer-newsletter-form .lni-subscribe-email {
        border-radius: 12px 12px 0 0;
        text-align: center;
    }

    .footer-newsletter-form .lni-subscribe-btn {
        border-radius: 0 0 12px 12px;
        justify-content: center;
    }

    .footer-newsletter-form .lni-subscribe-email {
        width: 100%;
    }

    .footer-newsletter-form .lni-subscribe-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 5px 0;
    }

    .top-bar-social a {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    /* Hide widget area on very small screens to save space */
    .top-bar-widgets {
        display: none;
    }

    /* Smaller language flags on very small screens */
    .top-bar-language .lang-flag-link {
        width: 18px;
        height: 18px;
    }

    .top-bar-language .lang-switcher.lang-flags {
        gap: 5px;
    }

    .site-logo-text {
        font-size: 12px;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .btn-newsletter {
        width: 100%;
    }
}
