@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f0f12;
    --bg-card: rgba(30, 30, 36, 0.65);
    --bg-card-hover: rgba(40, 40, 48, 0.8);
    --border-color: rgba(229, 169, 60, 0.15);
    --border-glow: rgba(229, 169, 60, 0.4);
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    
    /* Paleta de colores inspirada en el logo de Ares (Fuego y Metal) */
    --ares-gold: #E5A93C;
    --ares-amber: #D97706;
    --ares-fire: #F59E0B;
    --ares-bronze: #8c571e;
    --ares-steel: #2e2e38;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Fondo decorativo con gradiente y partículas */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(229, 169, 60, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 15, 18, 1) 0%, rgba(10, 10, 12, 0.95) 100%);
    z-index: -2;
}

/* Efecto de chispas en el fondo */
.bg-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 15%, rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 45%, rgba(245, 158, 11, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 45% 75%, rgba(245, 158, 11, 0.03) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 400px 400px;
    z-index: -1;
}

/* Contenedores principales */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: rgba(18, 18, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand span {
    background: linear-gradient(135deg, var(--ares-gold), var(--ares-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 2px solid var(--ares-gold);
    box-shadow: 0 0 10px rgba(229, 169, 60, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ares-gold);
}

.user-name {
    font-weight: 500;
    color: var(--color-text);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ares-gold), var(--ares-amber));
    color: #0f0f12;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5), 0 0 15px rgba(229, 169, 60, 0.3);
}

.btn-secondary {
    background: rgba(46, 46, 56, 0.5);
    color: var(--color-text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(46, 46, 56, 0.8);
    border-color: var(--ares-gold);
    color: #fff;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.4);
    color: #fff;
    border-color: #f87171;
}

/* Tarjetas (Glassmorphic Cards) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(229, 169, 60, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Alertas */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Grid de Servidores */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.server-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ares-gold), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.server-card:hover::before {
    opacity: 1;
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ares-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ares-gold);
    margin-bottom: 1.2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    object-fit: cover;
}

.server-card:hover .server-icon {
    border-color: var(--ares-gold);
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.35);
}

.server-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Página de Login / Welcome Page */
.login-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 650px;
    margin: auto;
    padding: 3rem 1.5rem;
}

.logo-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--ares-gold);
    box-shadow: 0 0 35px rgba(229, 169, 60, 0.4), inset 0 0 20px rgba(229, 169, 60, 0.2);
    margin-bottom: 2.5rem;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 25px rgba(217, 119, 6, 0.35);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.55);
        transform: scale(1.03);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--ares-gold), var(--ares-fire), var(--ares-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Formularios de Configuración */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--ares-gold);
    padding-left: 0.75rem;
}

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

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

.form-control {
    width: 100%;
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--ares-gold);
    box-shadow: 0 0 10px rgba(229, 169, 60, 0.15);
}

/* Switch de activar/desactivar */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.switch-label-group {
    display: flex;
    flex-direction: column;
}

.switch-sublabel {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ares-steel);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(229, 169, 60, 0.2);
    border-color: var(--ares-gold);
}

input:checked + .slider::before {
    transform: translateX(24px);
    background-color: var(--ares-gold);
    box-shadow: 0 0 8px rgba(229, 169, 60, 0.6);
}

/* Panel Dividido Configuración (Layout de Settings) */
.settings-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* Comandos Personalizados */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.command-item {
    background: rgba(15, 15, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.command-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.command-trigger {
    font-weight: 700;
    color: var(--ares-gold);
    font-size: 1rem;
}

.command-response {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    background: rgba(15, 15, 18, 0.4);
}
