/* Shell: navigation + footer from legacy layouts/landing — uses --primary/--accent bridged to --pl-* in linkat-landing-classic.css */
/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 2%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    flex-shrink: 0;
    min-width: 0;
    justify-self: start;
    text-decoration: none;
}

.logo svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo img {
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.classic-nav-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    position: relative;
    padding-left: 120px;
}

.nav-links > a:not(.btn-primary),
.nav-links > span:not(.language-selector-wrapper) {
    color: var(--text-gray);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links > a:not(.btn-primary):hover {
    color: var(--text-dark);
    text-decoration: none !important;
}

.nav-links a.dropdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    text-decoration: none !important;
}

.nav-links a.dropdown:hover {
    text-decoration: none !important;
}

.nav-links a.dropdown i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-links a.dropdown.active i {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

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

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: right;
}

.nav-dropdown-item:hover {
    background: rgba(0, 212, 170, 0.08);
    color: var(--primary);
    padding-right: 1.5rem;
}

.nav-dropdown-item.active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary);
    font-weight: 600;
    padding-right: 1.5rem;
}

.nav-links .user-avatar-container,
.nav-links > .btn-primary {
    position: absolute;
    left: 0;
    margin: 0;
}

.nav-links .language-selector-wrapper {
    position: relative;
    display: none;
}

.language-selector-wrapper {
    position: relative;
    display: none;
}

.language-selector {
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: var(--primary);
}

.language-selector option.coming-soon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-weight: 600;
    padding: 0.5rem;
}

.language-selector option:not(.coming-soon) {
    background: white;
    color: var(--text-dark);
}

.btn-primary {
    padding: 0.7rem 1.8rem;
    background: var(--pl-button-bg, var(--accent));
    border: none;
    border-radius: var(--pl-radius, 4px);
    color: var(--pl-button-text, #fff);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* User Avatar */
.user-avatar-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
    border-color: var(--accent);
}

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

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(255, 94, 125, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-header .user-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.user-dropdown-header .user-email {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.user-dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.user-dropdown-item {
    margin: 0;
}

.user-dropdown-item a,
.user-dropdown-item button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown-item a:hover,
.user-dropdown-item button:hover {
    background: rgba(0, 212, 170, 0.08);
    color: var(--primary);
    padding-right: 1.5rem;
}

.user-dropdown-item a i,
.user-dropdown-item button i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-gray);
    transition: color 0.2s ease;
}

.user-dropdown-item a:hover i,
.user-dropdown-item button:hover i {
    color: var(--primary);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.5rem 0;
}

.user-dropdown-item.logout button {
    color: var(--accent);
}

.user-dropdown-item.logout button:hover {
    background: rgba(255, 94, 125, 0.1);
    color: var(--accent-hover);
}

.user-dropdown-item.logout button i {
    color: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 4rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--dark);
    color: #e2e8f0;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo svg {
    height: 50px;
    width: auto;
    max-width: 200px;
    display: block;
    border-radius: 5px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-links a i {
    font-size: 0.8rem;
}

.newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter h4 {
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 0.9rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.newsletter-input {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #a0aec0;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 3%;
    }
    
    .logo svg {
        height: 50px !important;
        width: auto !important;
        max-width: 150px;
    }
    
    .nav-links {
        gap: 1rem;
        padding-left: 0;
        justify-content: flex-end;
    }
    
    .nav-links a:not(.btn-primary):not(.user-avatar),
    .nav-links .nav-dropdown {
        display: none;
    }
    
    .nav-links.active a:not(.btn-primary):not(.user-avatar),
    .nav-links.active .nav-dropdown {
        display: block;
    }
    
    .nav-links.active .nav-dropdown {
        width: 100%;
    }
    
    .nav-links.active .nav-dropdown .dropdown {
        display: flex;
    }
    
    .nav-links .user-avatar-container,
    .nav-links > .btn-primary {
        position: static;
        margin: 0;
    }
    
    /* Mobile Dropdown Styles */
    .nav-links.active .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        background: rgba(0, 212, 170, 0.05);
        border-radius: 8px;
        margin-top: 0.5rem;
        display: none;
        width: 100%;
    }
    
    .nav-links.active .nav-dropdown-menu.active {
        display: block;
    }
    
    .nav-links.active .nav-dropdown-menu::before {
        display: none;
    }
    
    .nav-links.active .nav-dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-links.active .nav-dropdown {
        width: 100%;
    }
    
    .nav-links.active .nav-dropdown .dropdown {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        gap: 1rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 999;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.active a:not(.btn-primary) {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
        text-decoration: none !important;
    }
    
    .nav-links.active a:not(.btn-primary):hover {
        background: rgba(0, 212, 170, 0.1);
        text-decoration: none !important;
    }
    
    .nav-links.active .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .nav-links.active .user-avatar-container {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0 0 0;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .main-content {
        padding: 2rem 3%;
    }
    
    /* Footer */
    footer {
        padding: 3rem 3% 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        font-size: 1.4rem;
    }
    
    .footer-logo svg {
        height: 40px;
        max-width: 150px;
        border-radius: 6px;
    }
    
    .footer-logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .newsletter {
        padding: 1.5rem;
        text-align: center;
    }
    
    .newsletter h4 {
        font-size: 1.1rem;
    }
    
    .newsletter p {
        font-size: 0.85rem;
    }
    
    .newsletter-input,
    .newsletter-button {
        width: 100%;
    }
    
    .newsletter-input {
        padding: 0.85rem 1rem;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .newsletter-button {
        padding: 0.85rem 1.25rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .newsletter {
        grid-column: 1 / -1;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    footer {
        padding: 2.5rem 2% 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-logo svg {
        height: 35px;
        max-width: 120px;
        border-radius: 6px;
    }
    
    .footer-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .newsletter {
        padding: 1.25rem 1rem;
    }
    
    .newsletter h4 {
        font-size: 1rem;
    }
    
    .newsletter p {
        font-size: 0.8rem;
    }
    
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
}
