/* Common styles for header and footer */
:root {
    --primary-green: #10b981;
    --dark-green: #059669;
    --light-green: #d1fae5;
    --primary-red: #ef4444;
    --dark-red: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 45px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Footer Styles */
footer {
    background: var(--gray-900);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    border-radius: 6px;
}

.footer-brand p {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-legal-links {
    margin-top: 1rem;
}

.footer-legal-links a {
    color: var(--gray-400);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

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

/* Platforms Bar */
.platforms-bar {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 2rem 2rem;
}

.platforms-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.platforms-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.platforms-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.platform-link:hover {
    transform: translateY(-3px);
}

.platform-logo {
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.platform-link:hover .platform-logo {
    opacity: 0.8;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.platform-link:hover .platform-name {
    color: var(--primary-green);
}

.platform-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.lang-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.lang-btn.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lang-btn .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mobile Menu Styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 99999;
    position: relative;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--primary-green);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 99999;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.mobile-menu-header .logo img {
    height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.mobile-menu-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.mobile-nav-links li {
    margin: 0;
    position: relative;
    z-index: 1;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    position: relative;
    z-index: 1;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    background: var(--gray-50);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.mobile-language-switcher {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mobile-cta-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    position: relative;
    z-index: 1;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cta-button {
        display: none;
    }
    
    .language-switcher {
        margin-right: 0.75rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.6rem;
    }
    
    .lang-btn .lang-text {
        display: none;
    }
    
    .lang-btn .flag {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-brand,
    .footer-section {
        text-align: left;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .platforms-bar {
        padding: 1.5rem 1rem;
    }
    
    .platforms-links {
        gap: 2rem;
    }
    
    .platform-name {
        font-size: 1rem;
    }
    
    .platform-desc {
        font-size: 0.8rem;
    }
}
