/* Estilos principales de StreamStore Pro */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A2E 50%, #0F0F0F 100%);
    color: #F5F5F5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Botones personalizados */
.btn-primary {
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
    background: linear-gradient(135deg, #B20710 0%, #E50914 100%);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #E50914;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
}

/* Tarjetas de vidrio */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.2);
}

/* Campos de entrada */
.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: #E50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(229, 9, 20, 0.2);
    color: #E50914;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #F39C12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Filtros */
.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    color: #E50914;
    border-color: rgba(229, 9, 20, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    color: white;
    border-color: transparent;
}

/* Métodos de pago */
.payment-method-btn {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-method-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
}

.payment-method-btn.selected {
    background: rgba(229, 9, 20, 0.2);
    border-color: #E50914;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

/* Tabs de administración */
.admin-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    color: #E50914;
    background: rgba(229, 9, 20, 0.05);
}

.admin-tab.active {
    color: #E50914;
    border-bottom-color: #E50914;
    background: rgba(229, 9, 20, 0.1);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.8);
}

/* Selección de texto */
::selection {
    background: rgba(229, 9, 20, 0.3);
    color: white;
}

/* Placeholder animation */
@keyframes placeholderShimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.placeholder {
    background: linear-gradient(90deg, #2D2D2D 25%, #3D3D3D 50%, #2D2D2D 75%);
    background-size: 1000px 100%;
    animation: placeholderShimmer 2s infinite linear;
}

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
}

/* Utilidades */
.text-gradient {
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(#0F0F0F, #0F0F0F) padding-box,
                linear-gradient(135deg, #E50914 0%, #B20710 100%) border-box;
}

/* Animaciones de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Efecto de partículas (opcional) */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Loader global */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #E50914;
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.95);
    border-left: 4px solid;
    color: white;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.toast.success {
    border-left-color: #2ECC71;
}

.toast.error {
    border-left-color: #E50914;
}

.toast.info {
    border-left-color: #00B4D8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Tooltips */
.tooltip {
    position: absolute;
    padding: 8px 12px;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.95);
}
