/* ============================================
   Profit Surf Club - Custom Styles
   ============================================ */

/* ---- Scroll Smooth ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection ---- */
::selection {
    background-color: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

/* ---- Scrollbar Custom ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* ---- Navbar ---- */
.nav-link {
    position: relative;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.76);
    border-radius: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8 0%, #7dd3fc 100%);
    border-radius: 9999px;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: white;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(56, 189, 248, 0.12) 100%);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Navbar scrolled */
.navbar-scrolled {
    background-color: #082f49 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.35);
}

.navbar-scrolled .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile nav */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

/* ---- Hamburger Animation ---- */
.hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-active span:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---- Preloader ---- */
.preloader-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---- Hero YouTube Video Background ---- */
.hero-yt-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-yt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 120%;
    min-height: 120%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-poster {
    z-index: -1;
    transition: opacity .6s ease;
}

/* Esconde poster quando iframe carrega */
.hero-yt-wrap + .hero-poster.loaded {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-yt-wrap {
        display: none;
    }
}

/* ---- Hero parallax effect ---- */
@media (min-width: 1024px) {
    .parallax-bg {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* ---- AOS custom overrides ---- */
[data-aos] {
    pointer-events: auto !important;
}

/* ---- Swiper customizations ---- */
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.3) !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background-color: #38bdf8 !important;
    width: 30px !important;
    border-radius: 5px !important;
}

/* ---- Form styles ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---- Animations ---- */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: pulse-ring 2s infinite;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 640px) {
    .font-heading {
        letter-spacing: -0.02em;
    }
}

/* ---- Loading spinner for form ---- */
.form-loading .fa-paper-plane {
    display: none;
}

.form-loading #btn-text {
    display: none;
}

.form-loading #btn-loader {
    display: block !important;
}

/* ---- Success/Error messages ---- */
.form-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.form-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ---- Gallery hover ---- */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ---- Counter animation ---- */
.counter-animated {
    display: inline-block;
}

/* ---- Glass effect ---- */

/* ---- Mascote Hero ---- */
.mascote-hero {
    animation: mascote-bob 5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes mascote-bob {
    0%   { transform: translateY(0px)   rotate(-0.8deg); }
    30%  { transform: translateY(-10px) rotate(0.5deg);  }
    60%  { transform: translateY(-14px) rotate(1deg);    }
    80%  { transform: translateY(-6px)  rotate(-0.3deg); }
    100% { transform: translateY(0px)   rotate(-0.8deg); }
}
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---- Print styles ---- */
@media print {
    nav, footer, #whatsapp-float, #whatsapp-tooltip, #back-to-top, #preloader {
        display: none !important;
    }
}

/* ============================================
   Classificados de Surf
   ============================================ */

/* Botões de filtro por categoria */
.classificados-cat-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid transparent; 
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

.classificados-cat-btn:hover {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

.classificados-cat-btn.active {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Card do anúncio */
.classificado-card {
    will-change: transform;
}

.classificado-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Inputs do formulário de anúncio */
.classificado-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.classificado-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    outline: none;
}

.classificado-input::placeholder {
    color: #94a3b8;
}

/* Upload de foto */
.foto-upload-btn {
    transition: all 0.2s ease;
}

.foto-upload-btn:hover {
    transform: scale(1.02);
}

/* Toggle switch customizado */
input[type="checkbox"].sr-only:checked + div {
    background-color: #0ea5e9;
}

input[type="checkbox"].sr-only:checked + div + div {
    transform: translateX(1.25rem);
}

/* Modal */
#modal-anuncio {
    animation: fadeIn 0.2s ease-out;
}

#modal-content {
    animation: slideUp 0.3s ease-out;
}

/* Lazy image placeholder */
.lazy-img {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-img[src] {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsivo - filtros em mobile */
@media (max-width: 640px) {
    .classificados-cat-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .classificado-input {
        font-size: 1rem; /* evita zoom automático no iOS */
    }
}

/* ============================================
   Galeria de Fotos e Vídeos
   ============================================ */

/* Masonry via CSS columns */
.galeria-masonry {
    columns: 4 240px;
    column-gap: 12px;
}

@media (max-width: 1024px) { .galeria-masonry { columns: 3 200px; } }
@media (max-width: 640px)  { .galeria-masonry { columns: 2 160px; } }
@media (max-width: 400px)  { .galeria-masonry { columns: 2 130px; } }

.galeria-item {
    break-inside: avoid;
    margin-bottom: 12px;
    display: block;
}

/* Card com hover */
.galeria-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #e2e8f0;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* Imagem */
.galeria-thumb {
    display: block;
    overflow: hidden;
}

.galeria-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.galeria-card:hover .galeria-thumb-img {
    transform: scale(1.07);
}

/* Overlay escura */
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 26, 48, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.galeria-card:hover .galeria-overlay {
    background: rgba(2, 26, 48, 0.78);
}

/* Conteúdo do overlay */
.galeria-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 16px;
    text-align: center;
}

.galeria-card:hover .galeria-overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Círculos de ação */
.galeria-play-circle,
.galeria-zoom-circle {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.galeria-card:hover .galeria-play-circle,
.galeria-card:hover .galeria-zoom-circle {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Badge destaque */
.galeria-star-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

/* Badge vídeo */
.galeria-video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Lightbox media fade */
.lb-media {
    transition: opacity 0.2s ease;
}

/* Esconder scrollbar nos filtros */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Focus ring acessibilidade */
.galeria-card:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

