/**
 * AstionSaga - Página de Editoras
 * CSS customizado para complementar Tailwind
 * 
 * @version 1.0.0
 * @date 2026-01-05
 */

/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --astion-gold: #fbbf24;
    --astion-gold-dark: #d97706;
    --astion-dark: #0f172a;
    --astion-darker: #020617;
}

/* ========================================
   RESET & BASE
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--astion-gold);
    color: var(--astion-dark);
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    padding: 4px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link.active {
    color: #fbbf24;
}

.nav-separator {
    display: inline-block;
    padding: 0 8px;
    color: #6b7280;
    font-size: 0.875rem;
    user-select: none;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    @apply inline-flex items-center justify-center px-6 py-3 bg-gradient-to-r from-astion-gold to-yellow-500 text-astion-dark font-semibold rounded-full transition-all duration-300 hover:shadow-lg hover:shadow-astion-gold/25 hover:scale-105;
}

.btn-primary-lg {
    @apply inline-flex items-center justify-center px-8 py-4 bg-gradient-to-r from-astion-gold to-yellow-500 text-astion-dark font-semibold text-lg rounded-full transition-all duration-300 hover:shadow-xl hover:shadow-astion-gold/30 hover:scale-105;
}

.btn-outline {
    @apply inline-flex items-center justify-center px-6 py-3 border-2 border-white/20 text-white font-medium rounded-full transition-all duration-300 hover:border-white/50 hover:bg-white/5;
}

.btn-outline-lg {
    @apply inline-flex items-center justify-center px-8 py-4 border-2 border-white/20 text-white font-semibold text-lg rounded-full transition-all duration-300 hover:border-white/50 hover:bg-white/5;
}

/* ========================================
   CARDS
   ======================================== */
.problem-card {
    @apply p-6 rounded-2xl bg-gradient-to-br from-red-500/5 to-red-500/10 border border-red-500/20 transition-all duration-300 hover:border-red-500/40 hover:transform hover:-translate-y-1;
}

.feature-card {
    @apply p-8 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 transition-all duration-500 hover:border-white/20 hover:bg-white/[0.05];
}

.feature-icon {
    @apply w-16 h-16 rounded-2xl flex items-center justify-center text-white mb-6 transition-transform duration-300 group-hover:scale-110;
}

.commission-card {
    @apply relative p-8 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 transition-all duration-300;
}

.tech-card {
    @apply p-6 rounded-2xl bg-gradient-to-br from-white/5 to-transparent border border-white/10 text-center transition-all duration-300 hover:border-white/20 hover:bg-white/[0.05] hover:transform hover:-translate-y-1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

.delay-2000 {
    animation-delay: 2s;
}

/* Analyst Orbit Animation */
@keyframes orbit-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.analyst-orbit {
    animation: orbit-pulse 3s ease-in-out infinite;
}

.analyst-orbit.delay-1 {
    animation-delay: 0.75s;
}

.analyst-orbit.delay-2 {
    animation-delay: 1.5s;
}

.analyst-orbit.delay-3 {
    animation-delay: 2.25s;
}

/* ========================================
   TABLE STYLES
   ======================================== */
table {
    @apply bg-white/[0.02] rounded-2xl overflow-hidden;
}

thead tr {
    @apply bg-white/5;
}

tbody tr {
    @apply transition-colors duration-200;
}

tbody tr:hover {
    @apply bg-white/5;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--astion-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .nav-link {
        @apply px-3 py-2 text-xs;
    }
}

@media (max-width: 768px) {
    section {
        @apply py-16;
    }
    
    h1 {
        @apply text-3xl;
    }
    
    h2 {
        @apply text-2xl;
    }
}

/* ========================================
   SPECIAL EFFECTS
   ======================================== */
/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
}

.glow-hover:hover {
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
}

/* Float animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   AOS CUSTOMIZATIONS
   ======================================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Faster animations on mobile */
@media (max-width: 768px) {
    [data-aos] {
        transition-duration: 0.4s !important;
    }
}
