/* DSLLM Documentation Ultimate Styles - Extracted & Optimized */
/* 🚀 ENTERPRISE-GRADE CSS ARCHITECTURE */

/* ===== CORE VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --selft-color: #8b5cf6;
    --bg-color: #ffffff;
    --dark-bg: #0f172a;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --gradient-selft: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --dark-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --border-color: #334155;
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --selft-color: #a78bfa;
}

/* ===== BASE STYLES ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-selft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    display: flex;
    gap: 0.25rem;
    background: var(--border-color);
    border-radius: 6px;
    padding: 2px;
}

.language-switch button {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-switch button.active {
    background: var(--primary-color);
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--border-color);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-selft {
    background: var(--selft-color);
    color: white;
}

.btn-selft:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--border-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    max-height: 500px;
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary-color);
    color: white;
}

.mobile-cta {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-padding-top: 120px;
}

section {
    scroll-margin-top: 120px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 2rem 4rem;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== DOCUMENTATION TIERS ===== */
.doc-tiers {
    padding: 4rem 2rem;
    background: #f8fafc;
}

[data-theme="dark"] .doc-tiers {
    background: #1e293b;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.tier {
    margin-bottom: 4rem;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .tier-header {
    background: #334155;
}

.tier-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.tier-1 .tier-icon {
    background: var(--gradient-selft);
}

.tier-2 .tier-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tier-3 .tier-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tier-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tier-description {
    color: var(--text-light);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

[data-theme="dark"] .doc-card {
    background: #334155;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.doc-card.visible {
    opacity: 1;
}

.doc-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.doc-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.feature-badge.active {
    background: var(--success-color);
    color: white;
}

.feature-badge.partial {
    background: var(--accent-color);
    color: white;
}

.feature-badge.auth {
    background: var(--selft-color);
    color: white;
}

.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.doc-link:hover {
    color: var(--primary-dark);
}

/* ===== QUICK ACCESS SECTION ===== */
.quick-access {
    padding: 4rem 2rem;
    background: white;
}

[data-theme="dark"] .quick-access {
    background: #334155;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.access-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--dark-bg);
    color: white;
    transition: all 0.3s;
}

.access-card:hover {
    transform: translateY(-5px);
}

.access-card.api {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.access-card.cli {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.access-card.wiki {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.access-card.training {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.access-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-card h3 {
    margin-bottom: 0.5rem;
}

.access-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.access-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.access-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== PHASE 2: READING PROGRESS ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #f59e0b 100%);
    z-index: 10001;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ===== PHASE 2: SMART CTA ===== */
.smart-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    z-index: 9998;
    backdrop-filter: blur(10px);
}

.smart-cta.show {
    transform: translateX(0);
    opacity: 1;
}

.smart-cta .cta-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.smart-cta .cta-content p {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.smart-cta .cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
}

.smart-cta .cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.smart-cta .close-cta {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.smart-cta .close-cta:hover {
    opacity: 1;
}

/* ===== PHASE 3: PULL TO REFRESH ===== */
.pull-refresh {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.pull-refresh.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== PHASE 3: EXIT INTENT MODAL ===== */
.exit-intent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.exit-intent-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
    color: #f1f5f9;
}

.exit-intent-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text-light);
}

.email-capture {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email-capture input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.email-capture input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.email-capture button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.email-capture button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-color);
}

/* ===== PHASE 4: AI FEATURES ===== */
.smart-search {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    z-index: 10003;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .smart-search {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.smart-search.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.smart-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--bg-color);
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.smart-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-suggestions {
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.search-suggestion:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.search-suggestion h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.search-suggestion p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== AI CHATBOT ===== */
.ai-chatbot {
    position: fixed;
    bottom: 80px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9996;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-chatbot:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.ai-chatbot.expanded {
    width: 400px;
    height: 350px;
    border-radius: 20px;
    flex-direction: column;
    padding: 1rem;
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
}

.chatbot-icon {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.chatbot-icon::before {
    content: '●';
    position: absolute;
    top: 15%;
    left: 25%;
    font-size: 0.3rem;
    animation: blink 2s infinite;
}

.chatbot-icon::after {
    content: '●';
    position: absolute;
    top: 15%;
    right: 25%;
    font-size: 0.3rem;
    animation: blink 2s infinite 0.5s;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    margin: 1rem 0;
    display: none;
}

.ai-chatbot.expanded .chatbot-messages {
    display: block;
}

.ai-chatbot.expanded .chatbot-icon {
    display: none;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-message.ai {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chatbot-input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    display: none;
}

.ai-chatbot.expanded .chatbot-input {
    display: block;
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== PREDICTIVE LOADER ===== */
.predictive-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    z-index: 10004;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.predictive-loader.show {
    opacity: 1;
}

.predictive-loader::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* ===== HOTKEYS HINT ===== */
.hotkeys-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9995;
    backdrop-filter: blur(10px);
}

.hotkeys-hint.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== PERFORMANCE NOTIFICATIONS ===== */
.perf-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    transform: translateX(300px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9997;
    max-width: 250px;
}

.perf-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.perf-notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.perf-notification.error {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-f12 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 350px;
    min-width: 280px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-f12.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-404 {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 450px;
    min-width: 320px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast-404.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-404 .close-btn,
.toast-f12 .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    user-select: none;
}

.toast-404 .close-btn:hover,
.toast-f12 .close-btn:hover {
    opacity: 1;
}

/* ===== LANGUAGE CONTENT ===== */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpBounce {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PROTECTION STYLES ===== */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 1rem 3rem;
        min-height: auto;
        display: block;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-cta {
        gap: 0.5rem;
    }

    .nav-cta .language-switch {
        display: none;
    }
    
    .mobile-cta .language-switch {
        display: flex !important;
    }

    .smart-cta {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }

    .ai-chatbot.expanded {
        width: calc(100vw - 40px);
        height: 400px;
        left: 20px;
        bottom: 20px;
    }

    .smart-search {
        width: 95%;
        padding: 1.5rem;
    }
}

/* ===== ERROR PAGE (FOR FUTURE USE) ===== */
.error-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-hero);
    color: white;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-content {
    max-width: 600px;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.error-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== END OF MAIN CSS ===== */
