/* =============================================
   Fred Studio - Estilos Customizados
   Complementa TailwindCSS CDN v4
   ============================================= */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Reset base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #000;
    color: #f3f4f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

::selection {
    background: #eab308;
    color: #000;
}

/* =============================================
   Animações
   ============================================= */

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Slide In from Top */
@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-in-top {
    animation: slideInTop 0.3s ease-out forwards;
}

/* Zoom In */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-zoom-in {
    animation: zoomIn 0.25s ease-out forwards;
}

/* Pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ping */
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

.eq-bar {
    display: inline-block;
    width: 3px;
    background: #eab308;
    border-radius: 2px;
    transform-origin: bottom;
}

.eq-bar:nth-child(1) { animation: bounce 0.8s infinite; height: 12px; }
.eq-bar:nth-child(2) { animation: bounce 0.6s infinite 0.2s; height: 8px; }
.eq-bar:nth-child(3) { animation: bounce 1s infinite 0.4s; height: 14px; }
.eq-bar:nth-child(4) { animation: bounce 0.7s infinite 0.1s; height: 10px; }

/* =============================================
   Componentes Reutilizáveis
   ============================================= */

/* Botão primário */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eab308;
    color: #000;
    font-weight: 800;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.2);
}

.btn-primary:hover {
    background: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

/* Botão outline */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(23, 23, 23, 0.9);
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid #404040;
}

.btn-outline:hover {
    background: #262626;
    border-color: #525252;
}

/* =============================================
   Seção Header
   ============================================= */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #262626;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-radius: 6px;
    color: #e5e5e5;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.nav-link:hover, .nav-link.active {
    color: #eab308;
    background: #171717;
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: #171717;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #262626;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: rgba(234, 179, 8, 0.5);
}

.card-video {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    background: #0a0a0a;
    cursor: pointer;
    overflow: hidden;
}

.card-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: brightness(0.9);
}

.card:hover .card-video img {
    transform: scale(1.05);
    filter: brightness(1);
}

.card-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.card:hover .card-video .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #dc2626;
}

.card-video .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #eab308;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

/* =============================================
   Galeria Grid
   ============================================= */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #171717;
    border: 1px solid #262626;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: rgba(234, 179, 8, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: brightness(0.95);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* =============================================
   Modais
   ============================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 896px;
    background: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.25s;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

/* =============================================
   Streaming Bar
   ============================================= */
.streaming-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(12px);
    transition: transform 0.3s;
}

/* Posição padrão: barra fixa no rodapé */
.streaming-bar.player-pos-barra {
    bottom: 0;
    border-top: 1px solid #262626;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.streaming-bar.player-pos-barra.minimized {
    transform: translateY(calc(100% - 36px));
}

/* Posição alternativa: fixo no topo da página */
.streaming-bar.player-pos-topo {
    top: 0;
    border-bottom: 1px solid #262626;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.streaming-bar.player-pos-topo.minimized {
    transform: translateY(calc(-100% + 36px));
}

/* Com o player no topo, o conteúdo e a navbar fixa descem a altura dele.
   --player-h é medida pelo JS e atualizada no resize. */
body.has-player-topo {
    padding-top: var(--player-h, 92px);
}

body.has-player-topo .navbar-fixed {
    top: var(--player-h, 92px);
}

/* Com o player na barra (rodapé), reserva o mesmo espaço embaixo da página
   para o player fixo não encobrir o rodapé/footer. */
body.has-player-barra {
    padding-bottom: var(--player-h, 92px);
    transition: padding-bottom 0.3s;
}

/* Player minimizado: sobra só a faixa de título (36px) visível */
body.has-player-barra.player-minimized {
    padding-bottom: 36px;
}

/* Volume slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #404040;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #eab308;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #eab308;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* =============================================
   Formulários
   ============================================= */
.form-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    transition: border-color 0.2s;
    font-family: 'Open Sans', sans-serif;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input:focus {
    outline: none;
    border-color: #eab308;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d1d5db;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

/* =============================================
   Floating WhatsApp
   ============================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    background: #16a34a;
    transform: scale(1.05);
}

@media (min-width: 640px) {
    .floating-whatsapp {
        right: 24px;
    }
}

/* =============================================
   Divider / Seção
   ============================================= */
.section-divider {
    width: 64px;
    height: 4px;
    background: #eab308;
    margin: 16px auto 0;
    border-radius: 4px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #eab308;
    margin-bottom: 8px;
}

/* =============================================
   Responsividade
   ============================================= */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
}

@media (min-width: 1025px) {
    .mobile-only { display: none !important; }
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* Line clamp */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
