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

/* 2. BASE STYLES */
:root {
    --glass-border-light: rgba(255, 255, 255, 0.2);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.6); /* Slate-900 with opacity */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Ngăn cuộn ngang trên mobile */
}

/* 3. GLASSMORPHISM (Hiệu ứng kính) */
.glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.dark .glass {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* 4. CUSTOM SCROLLBAR (Thanh cuộn) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Slate-300 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Slate-400 */
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155; /* Slate-700 */
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569; /* Slate-600 */
}

/* 5. GOOGLE TRANSLATE CUSTOMIZATION (Quan trọng) */

/* Ẩn thanh Top Bar mặc định của Google */
.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}

/* Ẩn Logo Google & Text "Powered by" */
.goog-logo-link, .goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
    margin-top: 4px; 
}

/* Tùy chỉnh nút Dropdown (Select Box) */
.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    padding: 6px 30px 6px 12px; /* Padding phải lớn để chứa mũi tên */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569; /* Slate-600 */
    background-color: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* Custom Arrow (Mũi tên xuống giả lập) */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* Hover effect cho Dropdown */
.goog-te-gadget .goog-te-combo:hover {
    border-color: #3b82f6; /* Primary Blue */
    color: #3b82f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Dark Mode cho Dropdown */
.dark .goog-te-gadget .goog-te-combo {
    color: #cbd5e1; /* Slate-300 */
    background-color: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.dark .goog-te-gadget .goog-te-combo option {
    background-color: #1e293b; /* Slate-800 */
    color: white;
}

/* Ẩn Tooltip khi hover vào text đã dịch */
#goog-gt-tt, .goog-tooltip, .goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* 6. UTILITY CLASSES */

/* Hiệu ứng Text Gradient */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #3b82f6, #8b5cf6);
}

/* Animation: Float (Dùng cho hình ảnh Hero) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Tinh chỉnh typography cho các trang chính sách (Terms, Privacy) */
.prose h2 {
    scroll-margin-top: 100px; /* Khi click mục lục không bị Navbar che */
}