/* css/base.css */

/* Variáveis para cores */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #1a1e2a;
    --text-primary: #d1d5db;
    --accent-blue: #3b82f6;
    --accent-purple: #9333ea;
    --card-bg: #1f2937;
    --border-blue: rgba(59, 130, 246, 0.1);
}

/* Geral */
html, body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

/* Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    z-index: -2;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1.0; }
}

/* Chuva de Código */
.code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.code-drop {
    position: absolute;
    color: rgba(0, 255, 0, 0.5);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    animation: fall 5s linear forwards;
}

@keyframes fall {
    0% { transform: translateY(-100%); opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Navbar */
.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-blue);
    padding: 1rem;
    z-index: 10;
}

.logo {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-blue);
}

/* Botões */
.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb, #7e22ce);
}

.btn-secondary {
    background: #374151;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    color: var(--text-primary);
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 2rem;
    z-index: 5;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal:not(.hidden) {
    display: flex;
}

/* Footer */
.footer {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--border-blue);
    padding: 1rem;
    margin-top: auto;
    color: #9ca3af;
    font-size: 0.875rem;
    z-index: 10;
}

.footer p {
    margin: 0;
}