/* ========================================= */
/* 1. VARIABLES Y RESET BÁSICO */
/* ========================================= */
:root {
    /* Enhanced color palette */
    --dark-bg: #0f1117;
    --dark-card: #1a1d25;
    --dark-card-hover: #222632;
    --text-light: #f0f2f5;
    --text-secondary: #9ca3af;
    --primary-color: #7289da;
    --primary-dark: #5b6eae;
    --primary-light: #8fa3eb;
    --cta-color: #00ffc8;
    --cta-color-dark: #00cca0;
    --cta-color-light: #33ffd6;
    --cta-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    --cta-shadow-hover: 0 0 25px rgba(0, 255, 200, 0.7);
    --accent-purple: #9b59b6;
    --accent-orange: #e67e22;
    --accent-red: #e74c3c;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
}

/* Reset modernizado */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* ========================================= */
/* 2. ESTILOS GLOBALES Y CONTENEDOR PRINCIPAL */
/* ========================================= */
.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

/* Fondo con gradiente sutil */
.dark-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(114, 137, 218, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 200, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(155, 89, 182, 0.03) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* Tipografía mejorada */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(to right, var(--text-light) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-light);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-xs);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--cta-color), var(--primary-color));
    border-radius: var(--radius-full);
}

h3 {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* Párrafos y textos */
p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* Estilos de Tarjetas (Cards) mejorados */
.card {
    background-color: var(--dark-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--cta-color), var(--primary-color));
}

/* ========================================= */
/* 3. HEADER Y NAVEGACIÓN MEJORADOS */
/* ========================================= */
header {
    background-color: rgba(26, 29, 37, 0.9);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cta-color);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.8);
}

.logo::before {
    content: '⚡';
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cta-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--cta-color);
    background-color: rgba(0, 255, 200, 0.05);
}

nav a:hover::after {
    width: 80%;
}

/* Auth Status y Botones de Login/Logout mejorados */
#auth-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#auth-status a {
    text-decoration: none;
    font-weight: 600;
}

.login-btn,
.logout-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.login-btn:hover,
.logout-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-btn::before,
.logout-btn::before {
    font-size: 1.1rem;
}



#auth-status p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================= */
/* 4. SECCIÓN HERO MEJORADA */
/* ========================================= */
.hero-section {
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(114, 137, 218, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 200, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero-section h1 {
    margin-bottom: var(--space-sm);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Contenedor de Acciones (Botones de Hero) */
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Botones Grandes CTA */
.big-cta {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* Botón CTA Principal (Verde Neón) mejorado */
.cta-button {
    background-color: var(--cta-color);
    color: var(--dark-bg);
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--cta-shadow);
    transition: all var(--transition-normal);
    text-decoration: none;
    text-align: center;
    min-width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button:hover:not(:disabled) {
    background-color: var(--cta-color-dark);
    box-shadow: var(--cta-shadow-hover);
    transform: translateY(-3px);
}

.cta-button:hover:not(:disabled)::before {
    left: 100%;
}

.cta-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* Botón Secundario mejorado */
.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    text-align: center;
    min-width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(114, 137, 218, 0.1);
    transition: width var(--transition-normal);
    z-index: -1;
}

.secondary-button:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--text-light);
    border-color: var(--primary-light);
}

.secondary-button:hover::before {
    width: 100%;
}

/* Barra de Estadísticas mejorada */
.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    color: var(--cta-color);
    font-weight: 700;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    padding: var(--space-md);
    background-color: rgba(26, 29, 37, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.stats-bar span {
    padding: 0 var(--space-sm);
    position: relative;
}

.stats-bar span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.1);
}

.stats-bar .stat-number {
    font-size: 1.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.2rem;
}

/* ========================================= */
/* 5. FORMULARIO DE SUBIDA MEJORADO */
/* ========================================= */
.submission-card {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    animation: fadeIn 0.8s ease-out;
}

.input-group,
.file-upload-group {
    margin-bottom: var(--space-md);
    position: relative;
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

#server-form input:not([type="file"]),
#server-form textarea,
#server-form select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: rgba(59, 61, 66, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    box-sizing: border-box;
    font-size: 1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
}

.input-icon input {
    padding-left: 3rem !important;
}

#server-form input:focus,
#server-form textarea:focus,
#server-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.2);
    background-color: rgba(59, 61, 66, 0.8);
}

#server-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    padding: 1rem;
}

/* Custom file upload */
.file-upload-group {
    position: relative;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    background-color: rgba(59, 61, 66, 0.3);
    text-align: center;
    min-height: 150px;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 61, 66, 0.5);
}

.file-upload-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.file-upload-label span {
    color: var(--text-secondary);
}

.file-upload-label input[type="file"] {
    display: none;
}

/* El botón de envío */
#server-form .cta-button {
    width: 100%;
    margin-top: var(--space-md);
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* ========================================= */
/* 6. LISTA DE SERVIDORES (GRID) MEJORADA */
/* ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    padding-top: var(--space-sm);
    animation: fadeIn 0.8s ease-out;
}

.server-card {
    position: relative;
    background-color: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.1);
}

.server-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(to right, var(--primary-color), var(--accent-purple));
    display: block;
    transition: transform var(--transition-normal);
}

.server-card:hover .server-banner {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-lg);
    position: relative;
}

.server-logo-container {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: absolute;
    top: -40px;
    left: var(--space-lg);
    border: 4px solid var(--dark-card);
    background-color: var(--dark-card);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    z-index: 2;
}

.server-card:hover .server-logo-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.server-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card h3 {
    margin-top: 50px;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.server-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.language-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.members-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.members-count::before {
    content: '👥';
}

.join-btn {
    display: block;
    text-align: center;
    background-color: var(--cta-color);
    color: var(--dark-bg);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--cta-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.join-btn:hover {
    background-color: var(--cta-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--cta-shadow-hover);
}

.join-btn::after {
    content: '➜';
    position: absolute;
    right: -20px;
    transition: right var(--transition-normal);
}

.join-btn:hover::after {
    right: 15px;
}

/* Badge para servidores destacados */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-red));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* ========================================= */
/* 7. FOOTER MEJORADO */
/* ========================================= */
footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    background-color: rgba(17, 17, 17, 0.9);
    margin-top: var(--space-xl);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cta-color);
}

.copyright {
    font-size: 0.9rem;
    margin-top: var(--space-md);
    color: var(--text-secondary);
}

/* ========================================= */
/* 8. ANIMACIONES Y EFECTOS ESPECIALES */
/* ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--cta-color));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-light), var(--cta-color-light));
}

/* ========================================= */
/* 9. RESPONSIVIDAD MEJORADA */
/* ========================================= */
@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
    }
    
    header {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    nav a {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button,
    .secondary-button {
        width: 100%;
        min-width: unset;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stats-bar span:not(:last-child)::after {
        display: none;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .server-card h3 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .hero-section {
        padding: var(--space-lg) 0;
    }
}

/* ========================================= */
/* 10. UTILIDADES ADICIONALES */
/* ========================================= */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--cta-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

/* Efecto de partículas para fondos especiales */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    font-size: 0.8rem;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* ========================================= */
/* 6B. ESTILOS DE BOTS (Reutiliza Server Card) */
/* ========================================= */

/* Las tarjetas de bot deben heredar el estilo de servidor */
.bot-card {
    /* Aquí puedes poner estilos específicos si quieres que el bot se diferencie, 
       pero por ahora, solo aseguramos que herede la base si no usaste la clase 'server-card' 
       directamente en JS como sugerimos antes. */
}

/* Reutilizar estilos de Servidor para los Bots */
/* NOTA: Si en tu JS asignaste la clase 'server-card' a los bots, 
   estos selectores ya estarían cubiertos. Si usaste 'bot-card', 
   debes añadir '.bot-card' a todos los selectores relevantes de la sección 6. */

/* Ejemplo: Si usaste la clase 'bot-description' en lugar de 'server-description' */
.bot-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bot-card .card-content p {
    /* Estilo para el texto general dentro del contenido de la tarjeta de bot */
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.bot-card .prefix-display {
    /* Estilo para mostrar el prefijo del bot */
    display: inline-block;
    background-color: var(--accent-purple); /* Color secundario para diferenciar */
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* Asegurar que la descripción de bot comience debajo del título y prefijo */
.bot-card h3 {
    margin-top: 50px; 
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

/* ========================================= */
/* 5B. AJUSTES DEL FORMULARIO DE SUBIDA DE BOT */
/* ========================================= */

/* Asegurar que los estilos de input se apliquen también a los inputs del formulario de bots */
#bot-form input:not([type="file"]),
#bot-form textarea,
#bot-form select {
    /* Reutiliza el estilo del formulario de servidor */
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: rgba(59, 61, 66, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    box-sizing: border-box;
    font-size: 1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
}

#bot-form input:focus,
#bot-form textarea:focus,
#bot-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.2);
    background-color: rgba(59, 61, 66, 0.8);
}

#bot-form .cta-button {
    width: 100%;
    margin-top: var(--space-md);
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* Estilo para el contenedor de acciones de la tarjeta */
.card-actions-row {
    display: flex;
    flex-direction: column; /* Apilar rating y botones */
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.rating-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color, #7289DA);
    margin-right: 8px;
}

.stars {
    font-size: 1.2em;
}

.action-buttons {
    display: flex;
    gap: 10px; /* Espacio entre los dos botones */
}

/* Estilo para el botón de reseña */
.details-btn {
    background-color: var(--background-dark, #1e1e2d); 
    border: 1px solid var(--primary-color, #7289DA);
    color: var(--primary-color, #7289DA);
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1; /* Para que ocupe la mitad del espacio */
}

.details-btn:hover {
    background-color: var(--primary-color, #7289DA);
    color: white;
}

/* Ajuste del botón Join/Invite (ya existente) */
.join-btn {
    flex: 1; /* Para que ocupe la otra mitad del espacio */
    /* Asegúrate de que tu estilo .join-btn tenga un 'padding' similar al .details-btn */
    padding: 10px 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Estilos para el Modal de Reseñas */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--background-light, #2c2c40); /* Fondo de las tarjetas */
    color: var(--text-color, #f0f0f0);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

#modal-title {
    color: var(--primary-color, #7289DA);
    margin-top: 0;
}

/* Estilos para el input de Rating (Estrellas) */
.rating-input {
    margin-bottom: 20px;
}

.rating-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.stars-input .star-icon {
    font-size: 2em;
    cursor: pointer;
    color: #4a4a5c; /* Estrellas grises por defecto */
    transition: color 0.2s;
}

.stars-input .star-icon.active {
    color: #FFD700; /* Color de estrella seleccionada */
}

/* Estilos del formulario */
#modal-review-form label {
    margin-top: 10px;
    display: block;
}

#modal-review-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--card-bg, #36394e);
    background-color: var(--card-bg, #36394e);
    color: var(--text-color);
    border-radius: 5px;
    resize: vertical;
    box-sizing: border-box;
}

#submit-review-btn {
    background-color: var(--primary-color, #7289DA);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.2s;
}

#submit-review-btn:hover {
    background-color: #5b6fb8;
}

.hidden {
    display: none !important;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-btn {
    display: block;
    text-align: center;
    background-color: var(--cta-color);
    color: var(--dark-bg);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--cta-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.review-btn:hover {
    background-color: var(--cta-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--cta-shadow-hover);
}

.review-btn::after {
    position: absolute;
    right: -20px;
    transition: right var(--transition-normal);
}

.review-btn:hover::after {
    right: 15px;
}

/* ========================================= */
/* FIN DEL CSS MEJORADO */
/* ========================================= */