/**
 * Header & Footer Complete Styles
 *
 * @package AITools_Hub
 */

/* ==========================================================================
   HEADER COMPLETE STYLES
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 239, 234, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.main-navigation {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 32px;
    padding: 0 20px;
}

/* Logo Section */
.site-branding {
    flex-shrink: 0;
}

/* WordPress Custom Logo Styles */
.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-logo-link:hover {
    transform: translateY(-2px);
}

.custom-logo {
    max-height: 36px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(107, 207, 158, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2D2B;
    line-height: 1;
}

.site-subtitle {
    font-size: 12px;
    color: #2ED06E;
    line-height: 1;
    font-weight: 500;
}

/* Navigation Center */
.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #1F2D2B;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.menu-link:hover {
    color: #2ED06E;
    background: rgba(107, 207, 158, 0.1);
}

.menu-link.submit-link {
    background: transparent;
    color: #1F2D2B;
    border: none;
    box-shadow: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-link.submit-link:hover {
    color: #2ED06E;
    background: rgba(107, 207, 158, 0.1);
    transform: none;
    box-shadow: none;
}

.menu-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-item.has-dropdown.active .menu-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #1F2D2B;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #EAF8F1;
    color: #2ED06E;
}

.dropdown-divider {
    height: 1px;
    background: #E5EFEA;
    margin: 8px 0;
}

.dropdown-item.view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #2ED06E;
    margin-top: 8px;
}

/* Header Search */
.header-search {
    flex: 0 1 400px;
    position: relative;
}

.header-search .search-form {
    position: relative;
}

.header-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7C78;
    font-size: 16px;
    z-index: 1;
}

.header-search .search-field {
    width: 100%;
    padding: 8px 16px 8px 44px;
    border: 1px solid #E5EFEA;
    border-radius: 10px;
    background: #F8FBFA;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-search .search-field:focus {
    outline: none;
    border-color: #2ED06E;
    background: white;
    box-shadow: 0 0 0 3px rgba(107, 207, 158, 0.1);
}

.header-search .search-form.focused .search-icon {
    color: #2ED06E;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-submit {
    padding: 8px 16px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(107, 207, 158, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.4);
    color: white;
}

/* Desktop Submit Badge */
.submit-badge .badge-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #2ED06E 0%, #26B860 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(46, 208, 110, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.submit-badge .badge-trigger i {
    font-size: 16px;
    margin-right: 8px;
    z-index: 2;
}

.submit-badge .badge-text {
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-badge .badge-pulse {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 12px;
    height: 12px;
    background: rgba(46, 208, 110, 0.3);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

.submit-badge .badge-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 208, 110, 0.25);
}

.submit-badge .badge-trigger:hover .badge-text {
    opacity: 1;
    transform: translateX(0);
}

.submit-badge .badge-trigger:hover .badge-pulse {
    animation-play-state: paused;
    background: rgba(46, 208, 110, 0.6);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Mobile Submit Badge */
.mobile-submit-badge {
    margin: 15px 0;
    text-align: center;
}

.mobile-submit-badge .badge-trigger {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #2ED06E 0%, #26B860 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(46, 208, 110, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-submit-badge .badge-trigger i {
    font-size: 16px;
    margin-right: 8px;
    z-index: 2;
}

.mobile-submit-badge .badge-text {
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    transform: translateX(0);
}

.mobile-submit-badge .badge-pulse {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 12px;
    height: 12px;
    background: rgba(46, 208, 110, 0.3);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

.mobile-submit-badge .badge-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 208, 110, 0.25);
}

.mobile-submit-badge .badge-trigger:hover .badge-pulse {
    animation-play-state: paused;
    background: rgba(46, 208, 110, 0.6);
}

.user-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-trigger:hover {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar i {
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.user-avatar .user-icon {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-menu-trigger:hover .user-avatar {
    border-color: #2ED06E;
    box-shadow: 0 4px 12px rgba(46, 208, 110, 0.2);
}

.user-menu-trigger:hover .user-avatar i {
    color: #2ED06E;
}

.user-menu-trigger:hover .user-avatar .user-icon {
    fill: #2ED06E;
}

.user-menu {
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-avatar .mobile-user-icon {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: all 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #E5EFEA;
    margin-bottom: 8px;
}

.user-name {
    font-weight: 600;
    color: #1F2D2B;
    font-size: 15px;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #6B7C78;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.user-dropdown .dropdown-item.logout {
    color: #dc2626;
}

.user-dropdown .dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #1F2D2B;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1002;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    height: 100vh;
}

.mobile-menu-inner {
    padding: 24px 20px;
}

.mobile-search {
    margin-bottom: 24px;
}

.mobile-search .search-form {
    position: relative;
}

.mobile-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7C78;
}

.mobile-search .search-field {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #E5EFEA;
    border-radius: 10px;
    background: #F8FBFA;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #E5EFEA;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: #1F2D2B;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-submenu {
    display: none;
    padding: 8px 0 16px 16px;
}

.mobile-submenu li {
    padding: 8px 0;
}

.mobile-submenu a {
    color: #6B7C78;
    text-decoration: none;
    font-size: 15px;
}

.mobile-menu-item.open .mobile-submenu {
    display: block;
}

.mobile-menu-item.open .mobile-menu-link i {
    transform: rotate(180deg);
}

/* ==========================================================================
   FOOTER COMPLETE STYLES
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    color: #d1d5db;
    margin-top: 96px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ED06E 0%, #2ED06E 50%, #14b8a6 100%);
}

.footer-main {
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Footer Brand */
.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* WordPress Custom Logo Styles for Footer */
.footer-logo .custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo .custom-logo-link:hover {
    transform: translateY(-2px);
}

.footer-logo .custom-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: linear-gradient(45deg, #2ED06E, #2ED06E);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-logo .site-title {
    color: white;
    font-weight: 700;
    font-size: 24px;
}

.footer-logo .site-subtitle {
    color: #2ED06E;
    font-weight: 500;
}

.footer-description {
    max-width: 384px;
    line-height: 1.7;
    color: #9ca3af;
    margin-bottom: 24px;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.social-link:hover {
    color: #2ED06E;
    background: rgba(107, 207, 158, 0.1);
    border-color: #2ED06E;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2ED06E, #2ED06E);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #2ED06E;
    padding-left: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #2ED06E;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(46, 208, 110, 0.2);
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #9ca3af;
}

.copyright {
    font-size: 14px;
}

.footer-tagline {
    font-size: 14px;
}

/* ==========================================================================
   MOBILE/TABLET HEADER
   ========================================================================== */

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 239, 234, 0.5);
    transition: all 0.3s ease;
}

.mobile-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 56px;
    gap: 12px;
}

/* Mobile Branding */
.mobile-branding {
    flex-shrink: 0;
}

.mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-logo-link:hover {
    transform: translateY(-1px);
}

.mobile-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(107, 207, 158, 0.3);
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mobile-site-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2D2B;
    line-height: 1;
}

.mobile-site-subtitle {
    font-size: 10px;
    color: #2ED06E;
    line-height: 1;
    font-weight: 500;
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6B7C78;
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-toggle:hover {
    color: #2ED06E;
    background: rgba(107, 207, 158, 0.1);
}

.mobile-login-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #2ED06E;
    border: 2px solid #2ED06E;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(46, 208, 110, 0.08);
}

.mobile-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ED06E 0%, #22c55e 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mobile-login-btn:hover {
    color: white;
    border-color: #2ED06E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 208, 110, 0.2);
}

.mobile-login-btn:hover::before {
    left: 0;
}

/* Mobile User Menu */
.mobile-user-menu {
    position: relative;
}

.mobile-user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-user-trigger:hover {
    transform: scale(1.05);
}

.mobile-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2ED06E;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.mobile-user-menu.active .mobile-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #E5EFEA;
    margin-bottom: 8px;
}

.mobile-user-name {
    font-weight: 600;
    color: #1F2D2B;
    font-size: 14px;
    margin-bottom: 4px;
}

.mobile-user-email {
    font-size: 12px;
    color: #6B7C78;
}

.mobile-dropdown-divider {
    height: 1px;
    background: #E5EFEA;
    margin: 8px 0;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1F2D2B;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.mobile-dropdown-item:hover {
    background: #EAF8F1;
    color: #2ED06E;
}

.mobile-dropdown-item.logout {
    color: #dc2626;
}

.mobile-dropdown-item.logout:hover {
    background: #fef2f2;
}

.mobile-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #1F2D2B;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(107, 207, 158, 0.1);
    color: #2ED06E;
}

.mobile-menu-toggle.active {
    background: rgba(107, 207, 158, 0.1);
    color: #2ED06E;
}

.mobile-hamburger {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-hamburger span {
    display: block;
    height: 2px;
    background: #1F2D2B;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .mobile-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #E5EFEA;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-search-container {
    padding: 16px;
}

.mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7C78;
    font-size: 16px;
    z-index: 1;
}

.mobile-search-field {
    flex: 1;
    padding: 12px 16px 12px 44px;
    border: 1px solid #E5EFEA;
    border-radius: 10px;
    background: #F8FBFA;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-search-field:focus {
    outline: none;
    border-color: #2ED06E;
    background: white;
    box-shadow: 0 0 0 3px rgba(107, 207, 158, 0.1);
}

.mobile-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6B7C78;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .nav-wrapper {
        gap: 20px;
        padding: 0 16px;
        min-height: 70px;
    }
    
    .nav-center {
        gap: 20px;
    }
    
    .main-menu {
        gap: 6px;
    }
    
    .menu-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .header-search {
        flex: 0 1 280px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-subtitle {
        font-size: 11px;
    }
    
    .btn-submit {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .nav-wrapper {
        gap: 12px;
        padding: 0 12px;
        min-height: 64px;
    }
    
    .nav-center,
    .header-search.desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .submit-cta-link {
        padding: 6px 12px;
        border-radius: 16px;
    }
    
    .badge-trigger i {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .badge-text {
        font-size: 11px;
    }
    
    .badge-pulse {
        width: 10px;
        height: 10px;
    }
    
    .btn-submit {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .custom-logo {
        max-height: 36px;
    }
    
    .mobile-custom-logo {
        max-height: 36px;
        width: auto;
        height: auto;
        transition: all 0.3s ease;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .site-subtitle {
        font-size: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .nav-wrapper {
        gap: 8px;
        padding: 0 12px;
        min-height: 60px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .custom-logo {
        max-height: 32px;
    }
    
    .mobile-custom-logo {
        max-height: 32px;
    }
    
    .site-title {
        font-size: 15px;
    }
    
    .site-subtitle {
        font-size: 9px;
    }
    
    .btn-submit {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .nav-wrapper {
        gap: 8px;
        padding: 0 8px;
        min-height: 56px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .custom-logo {
        max-height: 28px;
    }
    
    .mobile-custom-logo {
        max-height: 24px;
        width: auto !important;
        height: 28px;
    }
    
    .site-title {
        font-size: 14px;
    }
    
    .site-subtitle {
        font-size: 8px;
    }
    
    .btn-submit {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .hamburger {
        width: 20px;
        height: 16px;
    }
    
    .hamburger span {
        height: 1.5px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .nav-wrapper {
        gap: 6px;
        padding: 0 8px;
        min-height: 52px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .custom-logo {
        max-height: 24px;
    }
    
    .mobile-custom-logo {
        max-height: 24px;
        width: auto;
        height: 24px;
    }
    
    .site-title {
        font-size: 13px;
    }
    
    .site-subtitle {
        display: none;
    }
    
    .btn-submit {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
}

/* Improved Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu {
        top: 64px;
    }
    
    .mobile-menu-inner {
        padding: 20px 16px;
    }
    
    .mobile-search {
        margin-bottom: 20px;
    }
    
    .mobile-menu-link {
        padding: 14px 0;
        font-size: 15px;
    }
    
    .mobile-submenu {
        padding: 6px 0 12px 12px;
    }
    
    .mobile-submenu a {
        font-size: 14px;
    }
    
    .mobile-menu-item.open .mobile-menu-link i {
        transform: rotate(180deg);
    }
}

/* Mobile Menu Animations */
@media (max-width: 768px) {
    .mobile-menu {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu.active {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .menu-link,
    .btn-submit,
    .user-menu-trigger,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-link {
        min-height: 44px;
    }
}