/* ========================================
   Zona 14 - Futebol Acessível - Estilos
   ======================================== */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #fbbc04;
    --success: #34a853;
    --danger: #ea4335;
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-input: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border: #30363d;
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-brand .logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-input);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #0d1117 100%);
    border-bottom: 1px solid var(--border);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(26,115,232,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero .version-badge {
    display: inline-block;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Download */
.download-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
}

.download-card .version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.version-info .info-item {
    text-align: center;
}

.version-info .info-item .label { color: var(--text-secondary); font-size: 0.85rem; }
.version-info .info-item .value { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* News */
.news-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.news-card .news-date {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.news-card .news-body { color: var(--text-secondary); margin-top: 1rem; line-height: 1.8; }

/* Help */
.help-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.help-topic {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.help-topic .topic-header {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: none;
    width: 100%;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.help-topic .topic-header:hover { background: var(--border); }
.help-topic .topic-header .arrow { transition: transform 0.3s; }
.help-topic.open .topic-header .arrow { transform: rotate(180deg); }

.help-topic .topic-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.help-topic.open .topic-content {
    padding: 1.5rem;
    max-height: 1000px;
}

/* Credits Store */
.credits-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.credit-package {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.credit-package:hover, .credit-package.selected {
    border-color: var(--primary);
    background: rgba(26,115,232,0.1);
}

.credit-package .credits-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.credit-package .credits-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.credit-package .credits-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Admin */
.admin-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success { background: rgba(52,168,83,0.15); border: 1px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(234,67,53,0.15); border: 1px solid var(--danger); color: var(--danger); }
.alert-info { background: rgba(26,115,232,0.15); border: 1px solid var(--primary); color: var(--primary); }
.alert-warning { background: rgba(251,188,4,0.15); border: 1px solid var(--secondary); color: var(--secondary); }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Status bar */
.status-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-container { flex-wrap: wrap; height: auto; padding: 0.5rem 0; }
    .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .credits-grid { grid-template-columns: 1fr; }
}

/* Hidden */
.hidden { display: none !important; }

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-card h2 { text-align: center; margin-bottom: 2rem; }
