/* assets/css/estilo.css */
:root {
    --verde-neon: #CDFF4D;
    --bg-escuro: #000000;
    --card-bg: #111111;
    --card-hover: #1A1A1A;
    --texto-primario: #FFFFFF;
    --texto-secundario: #9CA3AF;
    --borda: #2A2A2A;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-escuro);
    color: var(--texto-primario);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HERO COM VÍDEOS ===== */
.hero-videos {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
    background: var(--bg-escuro);
}

.video-item {
    position: relative;
    overflow: hidden;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-item:hover video {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.gradiente-texto {
    background: linear-gradient(135deg, var(--verde-neon) 0%, #A0F0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitulo {
    font-size: 20px;
    color: var(--texto-secundario);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.logo span {
    background: linear-gradient(135deg, #fff 0%, var(--verde-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.ativo {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== SEARCH ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    width: 100%;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--borda);
    border-radius: 40px;
    padding: 0 48px;
    font-size: 16px;
    color: white;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--verde-neon);
    box-shadow: 0 0 0 4px rgba(205, 255, 77, 0.1);
    background: rgba(255,255,255,0.1);
}

/* ===== CATEGORIAS ===== */
.categorias {
    padding: 60px 24px;
    background: var(--bg-escuro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.categoria-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--borda);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.categoria-tab {
    background: transparent;
    border: none;
    color: var(--texto-secundario);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 40px;
}

.categoria-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.categoria-tab.ativo {
    color: white;
    background: rgba(205, 255, 77, 0.1);
    border: 1px solid var(--verde-neon);
}

/* ===== GRID DE MODELOS ===== */
.modelos-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.modelos-grid.ativo {
    display: grid;
}

.modelo-card {
    background: var(--card-bg);
    border: 1px solid var(--borda);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modelo-card:hover {
    background: var(--card-hover);
    border-color: var(--verde-neon);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modelo-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modelo-avatar {
    width: 48px;
    height: 48px;
    background: rgba(205, 255, 77, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modelo-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.modelo-meta {
    font-size: 13px;
    color: var(--texto-secundario);
}

.modelo-badge {
    background: var(--verde-neon);
    color: black;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 40px;
    text-transform: uppercase;
    margin-left: auto;
}

.modelo-descricao {
    font-size: 14px;
    color: var(--texto-secundario);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modelo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modelo-tipo {
    font-size: 13px;
    color: var(--verde-neon);
    background: rgba(205, 255, 77, 0.1);
    padding: 4px 12px;
    border-radius: 40px;
}

.btn-selecionar {
    background: transparent;
    border: 1px solid var(--borda);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-selecionar:hover {
    background: var(--verde-neon);
    color: black;
    border-color: var(--verde-neon);
}

/* ===== GRID DE CATEGORIAS ===== */
.categoria-section {
    padding: 40px 24px;
    background: linear-gradient(180deg, var(--bg-escuro) 0%, #0A0A0A 100%);
}

.categoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.categoria-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #111111 100%);
    border: 1px solid var(--borda);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-neon), #A0F0FF);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-8px);
    border-color: var(--verde-neon);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.categoria-card:hover::before {
    transform: translateX(0);
}

.categoria-icon {
    width: 64px;
    height: 64px;
    background: rgba(205, 255, 77, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.categoria-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.categoria-card p {
    color: var(--texto-secundario);
    font-size: 14px;
}

/* ===== FORMULÁRIOS ===== */
.feature-form {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--borda);
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
}

.feature-form.ativo {
    display: block;
}

.feature-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--verde-neon);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--texto-secundario);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-escuro);
    border: 1px solid var(--borda);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--verde-neon);
    box-shadow: 0 0 0 4px rgba(205, 255, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
    background: var(--bg-escuro);
    border: 2px dashed var(--borda);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.upload-area:hover {
    border-color: var(--verde-neon);
    background: rgba(205, 255, 77, 0.05);
}

.upload-area svg {
    margin-bottom: 12px;
}

.upload-area span {
    display: block;
    color: var(--texto-secundario);
    font-size: 14px;
}

/* ===== SLIDER ===== */
.slider-container {
    padding: 16px 0;
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--texto-secundario);
    font-size: 14px;
}

input[type=range] {
    width: 100%;
    height: 4px;
    background: var(--borda);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--verde-neon);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(205, 255, 77, 0.3);
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: var(--verde-neon);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #E5FF99;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(205, 255, 77, 0.3);
}

.btn-primary.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--borda);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ===== PREVIEWS ===== */
.character-preview {
    background: var(--bg-escuro);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.character-avatar {
    width: 120px;
    height: 120px;
    background: rgba(205, 255, 77, 0.1);
    border-radius: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-traits {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.trait-badge {
    background: rgba(205, 255, 77, 0.1);
    color: var(--verde-neon);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
}

.audio-player {
    background: var(--bg-escuro);
    border: 1px solid var(--borda);
    border-radius: 40px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.audio-wave {
    flex: 1;
    height: 40px;
    background: rgba(205, 255, 77, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.audio-wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--verde-neon), #A0F0FF);
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { width: 30%; left: 0; }
    50% { width: 70%; left: 30%; }
}

.motion-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 16px;
}

.motion-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.motion-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.motion-btn {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--borda);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.motion-btn:hover {
    background: var(--verde-neon);
    color: black;
}

/* ===== RESULTADOS ===== */
.resultados-section {
    padding: 60px 24px;
    background: linear-gradient(180deg, #0A0A0A 0%, var(--bg-escuro) 100%);
}

.resultados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.resultados-header h2 {
    font-size: 28px;
    font-weight: 600;
}

.request-status {
    font-size: 14px;
    color: var(--texto-secundario);
    background: rgba(205, 255, 77, 0.1);
    padding: 8px 16px;
    border-radius: 40px;
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.resultado-card {
    background: var(--card-bg);
    border: 1px solid var(--borda);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.resultado-card:hover {
    border-color: var(--verde-neon);
    transform: translateY(-4px);
}

.resultado-card img,
.resultado-card video {
    width: 100%;
    height: auto;
    display: block;
}

.resultado-info {
    padding: 16px;
}

/* ===== STATUS BADGES ===== */
.status-fila {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 13px;
}

.status-processando {
    background: rgba(13, 110, 253, 0.1);
    color: #0D6EFD;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 13px;
}

.status-concluido {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 13px;
}

.status-falha {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 13px;
}

/* ===== SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(205, 255, 77, 0.1);
    border-top-color: var(--verde-neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .nav-links {
        display: none;
    }
    
    .modelos-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .categoria-tabs {
        overflow-x: auto;
        padding-bottom: 16px;
        flex-wrap: nowrap;
    }
    
    .categoria-tab {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}