/* MidiaSuper - Custom Styles */

/* Configuração da fonte Inter */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Cores personalizadas */
:root {
    --primary: #1e40af;    /* Azul */
    --secondary: #059669;  /* Verde */
    --accent: #f59e0b;     /* Amarelo */
    --light: #f8fafc;      /* Branco/Cinza claro */
    --dark: #1e293b;       /* Cinza escuro */
}

/* Animações customizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -20px, 0);
    }
    70% {
        transform: translate3d(0, -10px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delay classes para animações */
.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* Gradientes personalizados */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--secondary) 100%);
}

/* Navegação */
.nav-link {
    position: relative;
    color: #4b5563;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Botões personalizados */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Cards de serviços */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Formulários */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Gallery filters */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.filter-btn:not(.active) {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.filter-btn:not(.active):hover {
    background: #e5e7eb;
    color: var(--primary);
    border-color: var(--primary);
}

/* Gallery items */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Floating icons */
.floating-icons i {
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.floating-icons i:nth-child(1) {
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
    animation-delay: 1s;
}

.floating-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

/* Back to top button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--secondary) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #047857 100%);
}

/* Animações de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Section backgrounds */
.section-pattern {
    position: relative;
    overflow: hidden;
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23f3f4f6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

/* Efeitos de hover para ícones */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent);
}

/* Sombras customizadas */
.shadow-primary {
    box-shadow: 0 10px 25px -3px rgba(30, 64, 175, 0.1), 0 4px 6px -2px rgba(30, 64, 175, 0.05);
}

.shadow-secondary {
    box-shadow: 0 10px 25px -3px rgba(5, 150, 105, 0.1), 0 4px 6px -2px rgba(5, 150, 105, 0.05);
}

.shadow-accent {
    box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.1), 0 4px 6px -2px rgba(245, 158, 11, 0.05);
}

/* Text effects */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.message-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: slideInFromTop 0.3s ease;
}

.message-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: slideInFromTop 0.3s ease;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries para responsividade */
@media (max-width: 1024px) {
    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .text-responsive {
        font-size: 1.25rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .section-padding {
        padding: 2rem 0 !important;
    }
    
    .service-card {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
    
    .glass-effect {
        background: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .text-responsive {
        font-size: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-accent {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .form-input {
        padding: 0.75rem;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background: #1e293b;
        color: white;
    }
    
    .dark-mode .nav-link {
        color: #cbd5e1;
    }
    
    .dark-mode .nav-link:hover {
        color: #60a5fa;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .bg-gradient-primary,
    .bg-gradient-secondary,
    .bg-gradient-accent {
        background: white !important;
        color: black !important;
    }
}

/* Audio Player Styles */
.audio-player-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.audio-player-container .playlist-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-player-container .playlist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.audio-player-container .playlist-item:hover::before {
    left: 100%;
}

.audio-player-container .playlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.audio-player-container .playlist-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #60a5fa;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* Customização das barras de progresso */
#progress-bar,
#volume-control {
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

#progress-bar::-webkit-slider-thumb,
#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

#progress-bar::-webkit-slider-thumb:hover,
#volume-control::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#progress-bar::-moz-range-thumb,
#volume-control::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Animação dos botões do player */
.audio-player-container button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-player-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.audio-player-container button:active {
    transform: translateY(0);
}

/* Efeito de ondulação nos botões */
.audio-player-container button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.audio-player-container button:active::before {
    width: 120%;
    height: 120%;
}

/* Estilo para quando a faixa está tocando */
.audio-player-container .playlist-item.playing {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #3b82f6;
}

.audio-player-container .playlist-item.playing .play-track-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.audio-player-container .playlist-item.playing .play-track-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Responsividade do player */
@media (max-width: 768px) {
    .audio-player-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .audio-player-container .playlist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .audio-player-container .playlist-item .flex-shrink-0:last-child {
        align-self: flex-end;
        margin-top: -2rem;
    }
}

/* Animação de carregamento */
.audio-loading {
    position: relative;
}

.audio-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Estilos para o Card do Carro de Som */
.carro-som-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carro-som-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Backdrop blur para o container da imagem */
.backdrop-blur-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efeito de hover no botão CTA do carro de som */
.carro-som-cta {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carro-som-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Responsividade para o card do carro de som */
@media (max-width: 1024px) {
    .carro-som-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carro-som-content {
        text-align: center;
    }
}

/* Estilos específicos para imagens de totens */
.totem-image {
    object-fit: contain;
    object-position: center center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* Diferentes posicionamentos para tipos específicos de totens */
.totem-vertical {
    object-position: center top;
}

.totem-noturno {
    object-position: center center;
}

.totem-multiplo {
    object-position: center top;
}

.totem-promocional {
    object-position: center center;
}

/* Posicionamentos específicos para cada totem */
.totem-anuncie-noite {
    object-position: center center;
}

.totem-sua-empresa {
    object-position: left center;
}

.totem-desktop-alto {
    object-position: center top;
}

.totem-cachorro {
    object-position: right center;
}

.totem-ultimas-unidades {
    object-position: center top;
}

.totem-academia {
    object-position: center center;
}

/* Posicionamentos alternativos */
.pos-top {
    object-position: center top !important;
}

.pos-bottom {
    object-position: center bottom !important;
}

.pos-left {
    object-position: left center !important;
}

.pos-right {
    object-position: right center !important;
}

.pos-center {
    object-position: center center !important;
}

.pos-top-left {
    object-position: left top !important;
}

.pos-top-right {
    object-position: right top !important;
}

.pos-bottom-left {
    object-position: left bottom !important;
}

.pos-bottom-right {
    object-position: right bottom !important;
}

/* Container otimizado para totens */
.totem-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

/* Perfil vertical para todos os totens */
.totem-container.portrait {
    height: 400px;
}

/* Altura uniforme maior para melhor visualização dos totens */
.totem-item .totem-container {
    height: 400px;
}

/* Efeito hover melhorado para totens */
.totem-item:hover .totem-image {
    transform: scale(1.05);
}

/* Gradiente melhorado para legibilidade do texto */
.totem-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
}

/* Responsividade otimizada para totens */
@media (max-width: 768px) {
    .totem-container,
    .totem-container.portrait,
    .totem-item .totem-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .totem-container,
    .totem-container.portrait,
    .totem-item .totem-container {
        height: 300px;
    }
}

/* Animação para as estatísticas */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item .stat-number {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}