/* Extended styles for TrustyFi */

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher .lang-link {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #0b1014;
    background: transparent;
    border: 1.5px solid rgba(11, 16, 20, 0.2);
    transition: all 0.3s ease;
}

.language-switcher .lang-link:hover {
    background: rgba(255, 227, 71, 0.2);
    border-color: #FFE347;
}

.language-switcher .lang-link.active {
    background: #FFE347;
    border-color: #FFE347;
    color: #0b1014;
}

/* Header Extensions */
.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.header__lang {
    margin-left: auto;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    padding: 12px 0;
    top: calc(100% + 8px);
    left: 0;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.dropdown-content a {
    color: #0b1014;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 227, 71, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Extensions */
.mobile-menu-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFE347;
    margin-bottom: 12px;
    padding: 0 16px;
}

.mobile-menu-section a {
    padding: 10px 16px;
    display: block;
}

.mobile-menu-lang {
    padding: 20px 16px;
}

.mobile-menu-lang .language-switcher {
    justify-content: center;
}

.mobile-menu-lang .lang-link {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.mobile-menu-lang .lang-link.active {
    background: #FFE347;
    color: #0b1014;
}

/* Page Container */
.page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 16px 40px;
}

.page-hero {
    text-align: center;
    padding: 80px 16px 60px;
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.page-hero h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #0b1014;
}

.page-hero p {
    font-size: 20px;
    line-height: 28px;
    color: rgba(11, 16, 20, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 60px 16px;
}

.content-section h2 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    margin-bottom: 32px;
    color: #0b1014;
}

.content-section h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #0b1014;
}

.content-section p {
    font-size: 18px;
    line-height: 28px;
    color: rgba(11, 16, 20, 0.8);
    margin-bottom: 16px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: #FFE347;
    border-radius: 12px;
    padding: 32px 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h4 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #0b1014;
}

.feature-card p {
    font-size: 16px;
    line-height: 24px;
    color: rgba(11, 16, 20, 0.8);
}

/* Steps Section */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-size: 48px;
    font-weight: 500;
    color: #FFE347;
    min-width: 60px;
}

.step-content h4 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #0b1014;
}

.step-content p {
    font-size: 16px;
    line-height: 24px;
    color: rgba(11, 16, 20, 0.8);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 60px 0;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 48px;
    font-weight: 500;
    color: #FFE347;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: rgba(11, 16, 20, 0.7);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0b1014;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1.5px solid rgba(11, 16, 20, 0.2);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFE347;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .header__nav.desktop,
    .header__lang.desktop {
        display: none;
    }
    
    .page-hero h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .page-hero p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .content-section h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 769px) {
    .mobile {
        display: none !important;
    }
}

/* Prevent scroll restoration */
html {
    scroll-behavior: auto !important;
}

body {
    overflow-anchor: none;
}
