:root {
    --primary: #6366f1;
    --secondary: #4f46e5;
    --bg: #f8fafc;
    --text: #1e293b;
    --kostas-border: #10a37f;
    --maria-border: #ec4899;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root { --bg: #0f172a; --text: #f1f5f9; }
    .main-nav, .auth-cta-section, .avatar-card, .chat-window { background-color: #1e293b !important; }
    .bot-message, .suggestion-pill { background-color: #334155 !important; color: #f1f5f9 !important; }
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    margin: 0; 
    overflow-x: hidden;
}

/* Header & Nav */
.main-nav { background: white; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--primary); }

.login-btn-modern {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; padding: 10px 20px; border-radius: 12px;
    font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s;
}

.city-select { padding: 0.5rem; border-radius: 8px; border: 1px solid #e2e8f0; }

/* Hero */
.hero { text-align: center; padding: 3rem 1rem; background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); color: white; border-radius: 0 0 40px 40px; }

/* Avatars & Animations */
.avatars-container { display: flex; gap: 2rem; justify-content: center; padding: 3rem 1rem; flex-wrap: wrap; }
.avatar-card {
    background: white; padding: 1.5rem; border-radius: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center; cursor: pointer; width: 180px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent; position: relative;
}
.avatar-card:hover { transform: translateY(-10px) scale(1.05); }
.avatar-card.kostas:hover { border-color: var(--kostas-border); }
.avatar-card.maria:hover { border-color: var(--maria-border); }

/* Tooltip Bounce */
.avatar-card:hover::after {
    content: '👆 ΚΛΙΚ για chat'; position: absolute; bottom: -45px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    animation: bounce 2s infinite; z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
}

.avatar-img { font-size: 3.5rem; margin-bottom: 10px; }
.status-dot { 
    width: 12px; height: 12px; background: #22c55e; border: 2px solid white; border-radius: 50%; 
    position: absolute; top: 15px; right: 15px; animation: pulse 2s infinite; 
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Video Slider */
.video-slider-section { padding: 2rem 0; background: #f1f5f9; }
.swiper-slide { width: 160px !important; height: 280px !important; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.play-icon { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    background: rgba(0, 0, 0, 0.5); width: 45px; height: 45px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s;
}
.swiper-slide:hover .play-icon { background: rgba(255, 0, 0, 0.8); transform: translate(-50%, -50%) scale(1.1); }

/* Auth Section */
.auth-cta-section { 
    max-width: 450px; margin: 3rem auto; text-align: center; padding: 2rem; background: white; 
    border-radius: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); position: relative; overflow: hidden;
}
.auth-cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.social-login-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.social-btn { 
    padding: 12px; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; gap: 10px; color: white; transition: 0.3s;
}
.google-btn { background: #ea4335; }
.facebook-btn { background: #1877f2; }
.apple-btn { background: #000; }
.email-btn { background: var(--primary); width: 100%; }

/* Chat Window */
.chat-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); display: none; z-index: 1000; }
.chat-overlay.active { display: block; }

.chat-window {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: 500px;
    height: 85vh; background: white; border-radius: 25px 25px 0 0; display: flex; flex-direction: column; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}
.chat-overlay.active .chat-window { transform: translateX(-50%) translateY(0); }

.chat-header { background: var(--primary); color: white; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.current-bot { display: flex; align-items: center; gap: 10px; }
.close-chat-btn { background: rgba(255,255,255,0.2); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; background: #f8fafc; }
.message { margin-bottom: 12px; padding: 12px 16px; border-radius: 18px; max-width: 85%; line-height: 1.5; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.user-message { background: var(--primary); color: white; align-self: flex-end; margin-left: auto; border-bottom-right-radius: 4px; }
.bot-message { background: #e2e8f0; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }

/* Typing Indicator */
.typing-dots span { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; display: inline-block; animation: typing 1.4s infinite ease-in-out both; margin-right: 3px; }
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.quick-suggestions { padding: 10px; display: flex; gap: 8px; overflow-x: auto; background: white; border-top: 1px solid #f1f5f9; }
.suggestion-pill { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }

.chat-input-area { padding: 1rem; display: flex; gap: 10px; background: white; border-top: 1px solid #f1f5f9; }
.chat-input-area input { flex: 1; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; outline: none; }
.send-btn { background: var(--primary); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; }

/* Media Queries */
@media (max-width: 768px) {
    .avatars-container { flex-direction: column; align-items: center; }
    .avatar-card { width: 90%; max-width: 300px; }
    .chat-window { height: 90vh; }
}