/*
Theme Name: Kino62 Films
Description: Tema profissional para estúdio audiovisual com estética cinematográfica. Versão 2.0 com integração completa ACF - 100% dinâmico via WordPress admin.
Author: Tecsky Desenvolvimento Web
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kino62
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

Kino62 Films v2.0 - Major Update:
✨ Integração completa com Advanced Custom Fields PRO
🎛️ Painel admin personalizado para gerenciar conteúdo
📱 Upload de imagens e vídeos direto pelo WordPress
🎬 Hero slider, serviços e portfolio totalmente dinâmicos

Kino62 Films WordPress Theme, Copyright 2025
Kino62 Films is distributed under the terms of the GNU GPL v2 or later.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* ==========================================================================
   MOBILE FIRST APPROACH - Base styles for mobile devices
   ========================================================================== */

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, #E50914 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #E50914;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor.hover {
    transform: scale(2);
    background: rgba(229, 9, 20, 0.3);
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #E50914;
    z-index: 9997;
    transition: width 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

/* Hero Section Positioning - matching index.html exactly */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroSwiper {
    height: 100%;
    width: 100%;
}

.heroSwiper .swiper-slide {
    height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Hero content centering with flexbox */
.hero-content {
    max-width: 56rem; /* 896px = max-w-4xl */
    width: 100%;
}

/* Mobile adjustments for hero */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem; /* px-4 em mobile */
    }
    
    #hero {
        height: 100vh;
        min-height: 600px; /* altura mínima em mobile */
    }
    
    .heroSwiper .swiper-slide {
        height: 100vh;
        min-height: 600px;
    }
}

.gradient-bg {
    background: linear-gradient(-45deg, #000000, #1A1A1A, #E50914, #000000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* ==========================================================================
   VIDEO BACKGROUNDS
   ========================================================================== */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ==========================================================================
   SWIPER CUSTOMIZATIONS
   ========================================================================== */
.swiper-slide {
    transition: opacity 1s ease-in-out;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
}

/* ==========================================================================
   CARD EFFECTS
   ========================================================================== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.3);
}

/* ==========================================================================
   PORTFOLIO MASONRY - MOBILE FIRST
   ========================================================================== */
.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse-slow 3s infinite;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* ==========================================================================
   LOGO ENHANCED VISIBILITY
   ========================================================================== */
.logo-enhanced {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   FORM STYLES - MOBILE FIRST
   ========================================================================== */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    /* padding-left e padding-right são controlados pelas classes Tailwind pl-12 pr-4 */
}

.form-input:focus {
    border-color: #E50914;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
    outline: none;
}

/* ==========================================================================
   SERVICE CARD VIDEO
   ========================================================================== */
.service-video {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-video {
    opacity: 1;
}

/* ==========================================================================
   WORDPRESS SPECIFIC STYLES
   ========================================================================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #E50914;
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* ==========================================================================
   TABLET STYLES (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }
    
    .masonry-item {
        margin-bottom: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
    
    .form-input {
        padding-top: 15px;
        padding-bottom: 15px;
        /* padding-left e padding-right controlados pelo Tailwind */
    }
}

/* ==========================================================================
   DESKTOP STYLES (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
    }
    
    /* Show cursor only on desktop */
    .cursor {
        opacity: 1;
    }
}

/* ==========================================================================
   LARGE DESKTOP STYLES (min-width: 1200px)
   ========================================================================== */
/* Nenhuma regra adicional necessária aqui, herda as 3 colunas de 1024px */

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .loading-screen,
    .cursor,
    .scroll-progress,
    .whatsapp-float,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .video-bg {
        display: none !important;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor {
        display: none;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */
@media (prefers-contrast: high) {
    .gradient-bg {
        background: #000000;
    }
    
    .card-hover:hover {
        box-shadow: 0 0 0 2px #FFFFFF;
    }
}

/* ==========================================================================
   FORM ICONS POSITIONING
   ========================================================================== */
.form-icon {
    pointer-events: none;
    z-index: 10;
    position: absolute;
    left: 1rem; /* 16px */
    top: 50%;
    transform: translateY(-50%);
    color: #E50914 !important; /* Vermelho da marca - força override */
    font-size: 1rem;
    line-height: 1;
}

/* Para textarea e select, ajustar posição do ícone */
.form-icon-select,
.form-icon-textarea {
    top: 1rem; /* 16px do topo para textarea e select */
    transform: none;
}

/* ==========================================================================
   DARK MODE PREFERENCE
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can be enhanced */
    .form-input {
        background: rgba(255, 255, 255, 0.15);
    }
}
