@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    /* Main Theme Colors */
    --bg-deep: #050810;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-red: #ef4444;
    --accent-gold: #fbbf24;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    
    --active-accent: var(--accent-red);
    --active-glow: rgba(239, 68, 68, 0.2);
    
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-heavy: rgba(255, 255, 255, 0.08);
}

:root[data-theme="red"] { --active-accent: #ef4444; --active-glow: rgba(239, 68, 68, 0.4); }
:root[data-theme="gold"] { --active-accent: #fbbf24; --active-glow: rgba(251, 191, 36, 0.4); }
:root[data-theme="blue"] { --active-accent: #3b82f6; --active-glow: rgba(59, 130, 246, 0.4); }
:root[data-theme="emerald"] { --active-accent: #10b981; --active-glow: rgba(16, 185, 129, 0.4); }
:root[data-theme="midnight"] { --active-accent: #8b5cf6; --active-glow: rgba(139, 92, 246, 0.4); }
:root[data-theme="sunset"] { --active-accent: #f97316; --active-glow: rgba(249, 115, 22, 0.4); }
:root[data-theme="nordic"] { --active-accent: #06b6d4; --active-glow: rgba(6, 182, 212, 0.4); }
:root[data-theme="crimson"] { --active-accent: #be123c; --active-glow: rgba(190, 18, 60, 0.4); }
:root[data-theme="amethyst"] { --active-accent: #d946ef; --active-glow: rgba(217, 70, 239, 0.4); }
:root[data-theme="desert"] { --active-accent: #eab308; --active-glow: rgba(234, 179, 8, 0.4); }

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Theme Accent for Logos and Headers */
.logo, h1, h2, .brand-name { 
    transition: color 0.5s ease;
}
.logo, .brand-name { color: var(--active-accent); }
h1 { color: #fff; } /* Default h1 color, will be overridden by .brand-name where needed */
h2 { color: var(--text-main); }


/* Simple Cursor (Feature 5 - Fixed) */
.cursor-dot { 
    width: 8px; height: 8px; 
    background: var(--active-accent); 
    position: fixed; top: 0; left: 0;
    pointer-events: none; 
    z-index: 10001; border-radius: 50%; 
    transition: transform 0.05s linear, opacity 0.3s;
}
.cursor-outline { display: none; }

/* Preloader (Feature 2) */
#preloader { position: fixed; inset: 0; background: var(--bg-deep); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s; }
.loader-logo { font-family: 'Playfair Display'; font-size: 3rem; animation: pulse 2s infinite; color: var(--active-accent); }

/* Scroll Progress (Feature 3) */
#progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: var(--active-accent); z-index: 10002; width: 0%; box-shadow: 0 0 10px var(--active-accent); }

/* Navigation & Controls (Feature 4-6) */
.nav-controls { position: fixed; top: 5rem; right: 2rem; display: flex; align-items: center; gap: 1.5rem; z-index: 1000; }
.main-nav { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9998; 
    padding: 1.5rem 5%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; 
    background: rgba(5, 8, 16, 0.85); backdrop-filter: blur(30px); border-bottom: 1px solid var(--border);
    transition: 0.3s;
}
.nav-links { display: flex; gap: 1rem; justify-content: center; }
.nav-extra { display: flex; gap: 1.5rem; justify-content: flex-end; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 4px; }
.nav-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    transition: 0.3s;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
}
.nav-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--active-accent);
    transform: translateY(-2px);
    color: #fff !important;
}
.nav-btn.highlighted {
    background: var(--active-accent);
    border-color: var(--active-accent);
    color: #fff !important;
}
.nav-btn.highlighted:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.ticker-wrapper { 
    background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px); 
    padding: 0.6rem 1.5rem; border-radius: 100px; font-size: 0.85rem; color: var(--text-muted);
    overflow: hidden; white-space: nowrap; max-width: 400px;
}
.ticker-content { display: flex; gap: 2rem; animation: slideTicker 15s linear infinite; }
.ticker-content span { color: var(--text-main); font-weight: 600; }
@keyframes slideTicker { 0% { transform: translateX(10%); } 100% { transform: translateX(-10%); } }

.glass-btn { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border); 
    backdrop-filter: blur(12px); 
    padding: 0.7rem 1.2rem; 
    border-radius: 50px; 
    color: var(--text-main); 
    font-weight: 600; 
    transition: var(--transition);
}
.glass-btn:hover { background: var(--active-accent); border-color: var(--active-accent); transform: translateY(-3px); box-shadow: 0 10px 20px var(--active-glow); }

/* Theme Picker Grid */
.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    min-width: 220px;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10000;
}
.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.theme-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: #fff; transform: scale(1.1); }

/* Header & Parallax (Feature 7-8) */
header { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
header h1 { font-family: 'Playfair Display', serif; font-size: clamp(4rem, 12vw, 10rem); line-height: 1; margin-bottom: 1rem; }
header p { color: var(--text-muted); font-size: 1.2rem; letter-spacing: 4px; text-transform: uppercase; }

/* Background Particles (Feature 9) */
.particles-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particle { position: absolute; background: var(--active-accent); border-radius: 50%; opacity: 0.15; animation: float 15s infinite linear; }

/* Stats (Feature 10-12) */
.stats-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 6rem 0; text-align: center; }
.stat-card { background: var(--bg-surface); padding: 3rem; border-radius: 24px; border: 1px solid var(--border); transition: var(--transition); }
.stat-card:hover { border-color: var(--active-accent); transform: scale(1.05); }
.stat-val { font-size: 4rem; font-weight: 800; color: var(--active-accent); display: block; }

/* Search (Feature 13) */
.search-wrapper { max-width: 800px; margin: 0 auto 6rem; position: relative; }
#main-search { width: 100%; padding: 1.5rem 3rem; background: var(--bg-surface); border: 2px solid var(--border); border-radius: 100px; color: var(--text-main); font-size: 1.2rem; outline: none; transition: var(--transition); }
#main-search:focus { border-color: var(--active-accent); box-shadow: 0 0 30px var(--active-glow); }

/* City Grid (Feature 14-18) */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2.5rem; }
.city-card { 
    background: var(--bg-surface); 
    border-radius: 32px; 
    padding: 3rem; 
    border: 1px solid var(--border); 
    transition: 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.city-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, transparent, var(--active-accent), transparent);
    transform: translateX(-100%); transition: 0.6s;
}
.city-card:hover::before { transform: translateX(100%); }
.city-card:hover { 
    transform: translateY(-15px); 
    border-color: var(--active-accent); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.6); 
}
.region-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--active-accent); margin-bottom: 1rem; display: block; }

/* Timeline (Feature 19-22) */
.timeline { padding: 8rem 0; position: relative; }
.timeline::after { content: ''; position: absolute; left: 50%; top: 0; height: 100%; width: 2px; background: var(--border); }
.timeline-item { width: 45%; margin-bottom: 4rem; position: relative; z-index: 1; }
.timeline-item.right { margin-left: auto; }
.timeline-card { background: var(--bg-surface); padding: 2.5rem; border-radius: 20px; border: 1px solid var(--border); position: relative; }
.timeline-card::after { content: ''; position: absolute; top: 50%; width: 20px; height: 2px; background: var(--active-accent); }
.timeline-item.right .timeline-card::after { right: 100%; }
.timeline-item:not(.right) .timeline-card::after { left: 100%; }

/* Map Section (Feature 23-25) */
.map-section { padding: 8rem 0; text-align: center; }
.map-container { 
    background: var(--bg-surface); 
    border-radius: 32px; 
    padding: 3rem; 
    border: 1px solid var(--border); 
    max-width: 1100px; 
    margin: 0 auto; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
#turk-map-img { width: 100%; border-radius: 12px; transition: var(--transition); filter: brightness(0.8) contrast(1.2); }
#turk-map-img:hover { filter: brightness(1); transform: scale(1.02); }

/* Detail Sidebar (Feature 26-29) */
#sidebar { 
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 650px; height: 100vh; 
    background: rgba(5, 8, 16, 0.98); backdrop-filter: blur(50px); z-index: 9999; 
    padding: 5rem 3rem; border-left: 1px solid var(--border); transition: 0.7s cubic-bezier(0.2, 1, 0.2, 1);
    overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--active-accent) transparent;
}
#sidebar.active { right: 0; box-shadow: -50px 0 100px rgba(0,0,0,0.8); }

#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-thumb { background: var(--active-accent); border-radius: 10px; }

.city-widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.widget-card { 
    background: var(--glass-heavy); padding: 1.5rem; border-radius: 20px; border: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem; transition: var(--transition);
}
.widget-card:hover { transform: scale(1.02); border-color: var(--active-accent); }
.widget-card .icon { font-size: 1.8rem; }
.widget-card .label { font-size: 0.75rem; color: var(--text-muted); display: block; text-transform: uppercase; }
.widget-card .value { font-size: 1.1rem; font-weight: 800; color: var(--active-accent); }

.must-know-section { margin-top: 3rem; }
.must-know-section h3 { font-family: 'Playfair Display'; font-size: 1.8rem; margin-bottom: 1.5rem; }
.must-know-section ul { list-style: none; }
.must-know-section li { 
    padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--text-muted); 
    display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.95rem;
}
.must-know-section li::before { content: '✦'; color: var(--active-accent); }

.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.food-item { background: var(--bg-card); padding: 1.2rem; border-radius: 16px; font-size: 0.95rem; border: 1px solid var(--border); transition: var(--transition); }
.food-item:hover { border-color: var(--active-accent); color: var(--active-accent); }

/* Back to Top (Feature 30) */
#btt { position: fixed; bottom: 3rem; right: 3rem; width: 60px; height: 60px; background: var(--active-accent); color: #fff; border-radius: 50%; border: none; font-size: 1.5rem; display: none; align-items: center; justify-content: center; box-shadow: 0 10px 20px var(--active-glow); z-index: 1000; }

@keyframes float { 0% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } 100% { transform: translate(0, 0); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* Tools Grid */
.tools-grid { margin-top: 3rem; }
.tools-grid .glass-card { transition: var(--transition); background: var(--bg-surface); }
.tools-grid .glass-card:hover { transform: translateY(-10px); border-color: var(--active-accent); }

/* Tourist Tool Cards */
.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}
.tool-card:hover {
    border-color: var(--active-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.unit-converter {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.phrase-item {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}
.phrase-item span:first-child { font-weight: 600; color: var(--active-accent); }

@media (max-width: 968px) {
    header h1 { font-size: 4rem !important; }
    .nav-controls { position: absolute; top: 1rem; right: 1rem; flex-wrap: wrap; justify-content: flex-end; }
    .ticker-wrapper { display: none; }
    .stats-section { grid-template-columns: 1fr 1fr; }
    .city-grid { grid-template-columns: 1fr; }
}

/* Google Translate Widget Styling */
#google_translate_element {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.goog-te-gadget {
    font-family: inherit !important;
    color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    font-size: 0.8rem !important;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0 !important;
}

/* Sidebar Real-time Widgets */
.city-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.widget-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}
.widget-card:hover {
    transform: translateY(-5px);
    border-color: var(--active-accent);
}
.widget-card .icon {
    font-size: 1.5rem;
}
.widget-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}
.widget-card .value {
    font-size: 1rem;
    font-weight: 600;
}

#city-map-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}
#city-map-container:hover {
    border-color: var(--active-accent);
}

.recommended-badge {
    background: var(--active-accent);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 0.5rem;
    text-transform: uppercase;
}
/* Travel Checklist Styles */
.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.check-item:hover {
    border-color: var(--active-accent);
    background: rgba(255,255,255,0.05);
}
.check-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--active-accent);
}

/* Floating Translate Button Hover */
#floating-translate {
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#floating-translate:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

/* News Card System */
.news-card-box {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.4s;
    background: var(--bg-surface);
}
.news-card-box:hover {
    transform: translateY(-10px);
    border-color: var(--active-accent);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.news-card-box:hover .news-img-wrapper img {
    transform: scale(1.1);
}
.news-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--active-accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
}
.news-content-area {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-content-area h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-family: 'Playfair Display';
}
.news-content-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.news-footer .date {
    font-size: 0.8rem;
    color: var(--active-accent);
    font-weight: 600;
}
.read-more {
    font-size: 0.8rem !important;
    padding: 0.6rem 1.2rem !important;
}
