/**
 * TrueApp Shared Base Stylesheet
 *
 * This file contains all base styles used across the entire truetapp.github.io site.
 * It includes: typography, color variables, layout, navigation, buttons, footer, and language switcher.
 * Product-specific styles should be imported from product/assets/css/[product].css
 */

/* ─────────────────────────────────────────────────────────────────────
   GOOGLE FONTS IMPORT
   ───────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────
   CSS VARIABLES (THEME)
   ───────────────────────────────────────────────────────────────────── */
:root {
    --bg-dark: #0A0A0A;
    --primary-red: #FF002E;
    --primary-pink: #FF2066;
    --accent-orange: #FF6B35;
    --accent-yellow: #FFB347;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --glass-fill: rgba(255, 255, 255, 0.06);
    --glass-stroke: rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────────────────────────────
   HTML & BODY
   ───────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────────────────────────
   AMBIENT BACKGROUND ANIMATION
   ───────────────────────────────────────────────────────────────────── */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(255, 0, 46, 0.15) 0%,
        rgba(255, 32, 102, 0.08) 40%,
        transparent 70%
    );
    animation: pulse 8s ease-in-out infinite;
}

.ambient::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: 10%;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 53, 0.1) 0%,
        transparent 60%
    );
    animation: pulse 10s ease-in-out infinite reverse;
}

/* ─────────────────────────────────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────────────────────────────────── */
@keyframes pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   CONTAINER & LAYOUT
   ───────────────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────
   NAVIGATION BAR
   ───────────────────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-stroke);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* ─────────────────────────────────────────────────────────────────────
   NAV BRAND (LOGO + NAME)
   ───────────────────────────────────────────────────────────────────── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
}

.nav-brand span {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────────
   NAV LINKS & BUTTONS
   ───────────────────────────────────────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ─────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────── */

/* Primary Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink), var(--accent-orange));
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 0, 46, 0.35);
}

.btn-download:active {
    transform: translateY(0);
}

/* Secondary Button (Glass) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Large App Store Button */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-appstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 46, 0.3);
}

.btn-appstore:active {
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────
   LANGUAGE SWITCHER
   ───────────────────────────────────────────────────────────────────── */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-stroke);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    padding: 8px 0;
}

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

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent-orange);
}

.lang-option .checkmark {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-stroke);
    text-align: center;
}

footer p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        gap: 0;
    }

    .nav-links > a {
        display: none;
    }

    #lang-switcher-mount {
        display: inline-flex;
        align-items: center;
    }

    .container {
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-brand span {
        font-size: 16px;
    }

    .btn-download,
    .btn-secondary,
    .btn-appstore {
        font-size: 14px;
        padding: 10px 16px;
    }

    .lang-btn {
        padding: 8px 10px;
    }

    footer p {
        font-size: 12px;
    }
}
