/* --- RESET & BASIC --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: #000;
    color: #fff; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Animated Background */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(178, 34, 34, 0.1) 0%, transparent 50%),
        #000;
    z-index: -1; /* Πήγε πίσω για να μην ενοχλεί */
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Top Navigation */
.top-bar { 
    position: sticky; top: 0;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.15);
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
}
.logo { font-size: 1.5em; font-weight: 900; color: #ff0000; letter-spacing: 4px; text-decoration: none; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    color: #666; text-decoration: none; font-size: 0.9em; font-weight: 600; 
    letter-spacing: 2px; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: all 0.3s ease; 
}
.nav-links a.active, .nav-links a:hover { color: #fff; border-bottom-color: #ff0000; }

/* Container */
.container { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 80px 40px; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 80px; }
.hero h1 { font-size: 4em; font-weight: 900; letter-spacing: 8px; margin-bottom: 20px; line-height: 1.1; }
.hero h1 .greek { color: #fff; }
.hero h1 .trap { color: #ff0000; text-shadow: 0 0 40px rgba(255, 0, 0, 0.6); }
.hero h1 .analyzer { color: #ff6666; }
.hero p { color: #888; font-size: 1.1em; letter-spacing: 3px; margin-top: 10px; }

/* Search Section */
.search-section { max-width: 700px; margin: 0 auto 80px; }

/* Tabs */
.tabs {
    display: flex; justify-content: center; gap: 0; margin-bottom: 40px;
    background: rgba(20, 20, 20, 0.5); border-radius: 50px; padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.tab-btn {
    flex: 1; background: transparent; border: none; color: #666;
    font-size: 0.95em; font-family: inherit; font-weight: 700; cursor: pointer;
    padding: 16px 40px; transition: all 0.3s ease; border-radius: 50px; letter-spacing: 2px;
}
.tab-btn.active { background: #ff0000; color: #fff; }
.tab-btn:hover:not(.active) { color: #fff; }

/* Input Groups */
.input-group { display: none; }
.input-group.active { display: flex; flex-direction: column; gap: 16px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

select, input[type="text"] {
    width: 100%; padding: 20px 28px; background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-family: inherit;
    font-size: 1.05em; border-radius: 12px; transition: all 0.3s ease; appearance: none;
}
select:focus, input[type="text"]:focus { outline: none; border-color: #ff0000; background: rgba(20, 20, 20, 0.95); }
select option { background: #1a1a1a; color: #fff; }

.action-btn {
    width: 100%; padding: 20px; background: #ff0000; color: #fff;
    font-weight: 800; font-size: 1.05em; border: none; cursor: pointer;
    border-radius: 12px; transition: all 0.3s ease; letter-spacing: 3px;
}
.action-btn:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4); }

/* Results Area */
#resultsArea { margin-bottom: 60px; }
.stats-container {
    background: rgba(20, 20, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px; border-radius: 16px; margin-top: 20px;
}
.stats-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-header h3 { color: #fff; font-size: 1.8em; font-weight: 700; text-transform: uppercase; }
.stats-header span { color: #ff0000; font-weight: 600; font-size: 1em; }

/* Word Grid */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.word-item {
    background: rgba(30, 30, 30, 0.6); padding: 20px 16px; text-align: center;
    border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.03); transition: all 0.3s ease;
}
.word-item:hover { background: rgba(255, 0, 0, 0.08); border-color: rgba(255, 0, 0, 0.2); transform: translateY(-3px); }
.word-item .rank { color: #666; font-size: 0.7em; display: block; margin-bottom: 8px; font-weight: 600; }
.word-item .word { display: block; color: #fff; font-weight: 700; font-size: 1.05em; margin-bottom: 6px; }
.word-item .count { color: #ff0000; font-size: 1.15em; font-weight: 800; }

/* Global Section */
.global-section { margin-top: 100px; }
.global-section h3 { color: #fff; margin-bottom: 32px; font-size: 1.6em; text-align: center; letter-spacing: 3px; font-weight: 700; }
.global-section h3::before { content: '🔥 '; }
.show-more-btn {
    display: block; margin: 32px auto 0; background: transparent;
    border: 2px solid rgba(255, 0, 0, 0.3); color: #ff0000; padding: 14px 48px;
    cursor: pointer; font-family: inherit; font-size: 0.9em; font-weight: 700;
    letter-spacing: 2px; border-radius: 50px; transition: all 0.3s ease;
}
.show-more-btn:hover { background: rgba(255, 0, 0, 0.1); border-color: #ff0000; transform: scale(1.05); }

/* --- ARTISTS PAGE STYLES (NEW) --- */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

a.artist-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(30, 30, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px; border-radius: 16px; text-decoration: none; transition: 0.3s;
}
a.artist-card:hover {
    background: rgba(255, 0, 0, 0.08); border-color: #ff0000; transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}
a.artist-card h3 { color: #fff; font-size: 1.4em; font-weight: 800; margin-bottom: 10px; letter-spacing: 1px; }
a.artist-card p { color: #ff0000; font-weight: 600; font-size: 0.9em; letter-spacing: 1px; }

/* Footer */
footer { text-align: center; padding: 60px 0 40px; margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
footer a { color: #666; text-decoration: none; font-size: 0.95em; letter-spacing: 1px; transition: color 0.3s ease; }
footer a:hover { color: #ff0000; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5em; letter-spacing: 4px; }
    .container { padding: 60px 24px; }
    .top-bar { padding: 20px 24px; }
    .tabs { flex-direction: column; gap: 8px; }
    .word-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .stats-container { padding: 24px; }
}