/* assets/css/style.css */
:root {
    --bg-dark: #07090e;
    --bg-card: #11141d;
    --neon-accent: #00ffcc;
    /* Cyan/Green Neon */
    --neon-purple: #9d00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-main: linear-gradient(135deg, #00ffcc 0%, #9d00ff 100%);
    --shadow-neon: 0 0 15px rgba(0, 255, 204, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero */
header {
    padding: 30px 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
}

.logo-container h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.3));
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Ranking Infographic Section */
.live-ranking-section {
    margin: 50px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--neon-accent);
    border-radius: 2px;
}

/* Top Apps Swiper/Grid */
.top-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.top-app-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.top-app-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-accent);
    box-shadow: var(--shadow-neon);
}

.top-app-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--neon-accent);
    opacity: 0.5;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 15px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.top-app-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.top-app-votes {
    font-size: 0.9rem;
    color: var(--neon-accent);
    font-weight: 600;
}

/* All Apps List */
.app-list-container {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.app-row:last-child {
    border-bottom: none;
}

.app-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.app-rank-small {
    width: 40px;
    font-weight: 800;
    color: var(--text-secondary);
}

.app-icon-small {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin: 0 20px;
}

.app-info-mid {
    flex-grow: 1;
}

.app-name-mid {
    font-weight: 600;
    font-size: 1.1rem;
}

.app-category-mid {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vote-action {
    margin-left: 20px;
}

.btn-vote {
    background: transparent;
    border: 2px solid var(--neon-accent);
    color: var(--neon-accent);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-vote:hover {
    background: var(--neon-accent);
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon);
}

/* Content & SEO Area */
.content-seo {
    margin: 80px 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-seo h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.content-seo p {
    margin-bottom: 20px;
}

/* Protection Overlay */
#protection-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.protection-msg {
    color: var(--neon-accent);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--neon-accent);
}

/* Ads Slots */
.ad-slot {
    margin: 40px auto;
    text-align: center;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}