/* Importar fontes customizadas BATTLE ROAD */
@font-face {
    font-family: 'Battle Road';
    src: url('assets/BATTLE ROAD DEMO.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0041-005A, U+0061-007A; /* A-Z, a-z */
}

@font-face {
    font-family: 'Battle Road Vintage';
    src: url('assets/BATTLE ROAD VENTAGE DEMO.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0041-005A, U+0061-007A; /* A-Z, a-z */
}

/* Define a fonte Inter como padrão */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f4; /* stone-100 */
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo Escuro */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

/* Navbar no modo escuro */
body.dark-mode nav {
    background-color: rgba(26, 26, 26, 0.95);
}

body.dark-mode nav a,
body.dark-mode #menu-btn,
body.dark-mode #theme-toggle {
    color: #d6d3d1;
}

body.dark-mode nav a:hover,
body.dark-mode #menu-btn:hover,
body.dark-mode #theme-toggle:hover {
    color: #ffffff;
}

body.dark-mode .fire-text-light {
    color: #e5e5e5;
}

/* Menu mobile no modo escuro */
body.dark-mode #mobile-menu {
    background-color: #1a1a1a;
}

body.dark-mode #mobile-menu a {
    color: #d6d3d1;
}

body.dark-mode #mobile-menu a:hover {
    background-color: #262626;
}

/* Seções no modo escuro */
body.dark-mode #historia {
    background-color: #262626;
}

body.dark-mode #historia .absolute.inset-0.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #1a1a1a, #262626, #1a1a1a) !important;
}

body.dark-mode #historia .absolute.inset-0.opacity-30 > div {
    opacity: 0.15 !important;
}

body.dark-mode #sobre {
    background-color: #1a1a1a;
}

body.dark-mode #doacoes {
    background-color: #262626;
}

body.dark-mode #contato {
    background-color: #1a1a1a;
}

body.dark-mode #redes {
    background-color: #262626;
}

/* Textos no modo escuro */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p {
    color: #e5e5e5;
}

body.dark-mode .text-neutral-600,
body.dark-mode .text-neutral-700,
body.dark-mode .text-neutral-800 {
    color: #d6d3d1;
}

body.dark-mode .text-neutral-900 {
    color: #e5e5e5;
}

/* Cards de pontos de coleta no modo escuro */
body.dark-mode .collection-point-card {
    background: rgba(38, 38, 38, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
}

body.dark-mode .collection-point-card:hover {
    background: rgba(50, 50, 50, 1) !important;
}

body.dark-mode .collection-point-card h3 {
    color: #ffffff;
}

body.dark-mode .collection-point-card p {
    color: #d6d3d1;
}

body.dark-mode .collection-point-card a {
    color: #f5f5dc;
}

body.dark-mode .collection-point-card a:hover {
    color: #ffffff;
}

/* Player de rádio no modo escuro */
body.dark-mode .radio-player {
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .radio-icon,
body.dark-mode .radio-info {
    color: #e5e5e5;
}

body.dark-mode .radio-info p {
    color: #d6d3d1;
}

body.dark-mode .play-pause-btn {
    background: linear-gradient(135deg, #f5f5dc 0%, #e8d5b7 100%);
    color: #1a1a1a;
}

body.dark-mode .play-pause-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5dc 100%);
}

body.dark-mode .volume-control {
    color: #e5e5e5;
}

body.dark-mode .volume-slider {
    background: #404040;
}

body.dark-mode .volume-slider::-webkit-slider-thumb {
    background: #f5f5dc;
}

body.dark-mode .volume-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
}

body.dark-mode .volume-slider::-moz-range-thumb {
    background: #f5f5dc;
}

body.dark-mode .volume-slider::-moz-range-thumb:hover {
    background: #ffffff;
}

body.dark-mode .audio-wave span {
    background: #f5f5dc;
}

/* Ícones de redes sociais no modo escuro */
body.dark-mode .social-icon-wrapper {
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    color: #f5f5dc;
}

/* Footer no modo escuro */
body.dark-mode footer {
    background-color: #0a0a0a;
}

body.dark-mode footer p {
    color: #d6d3d1;
}

/* Botão voltar ao topo no modo escuro */
body.dark-mode #backToTop {
    background-color: #f5f5dc;
    color: #1a1a1a;
}

body.dark-mode #backToTop::before {
    background-color: #262626;
}

body.dark-mode #backToTop:hover {
    color: #f5f5dc;
}

/* Linha de animação no hover no modo escuro */
body.dark-mode .hover-line-animation::after {
    background-color: #f5f5dc;
}

/* Scrollbar no modo escuro */
body.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #f5f5dc;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* Grid modal no modo escuro */
body.dark-mode .grid-modal-content {
    background: rgba(38, 38, 38, 0.98);
}

/* Botão de tema com animação */
#theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: rgba(214, 201, 168, 0.2);
    transform: scale(1.1);
}

#theme-icon {
    transition: transform 0.3s ease;
}

#theme-toggle:active #theme-icon {
    transform: rotate(20deg);
}

/* Botões Ver Todas dos carrosséis - forçar cor preta em ambos os modos */
.carousel-view-all-btn {
    color: #1a1a1a !important;
}

.carousel-view-all-btn:hover {
    color: #000000 !important;
}

body.dark-mode .carousel-view-all-btn {
    color: #1a1a1a !important;
}

body.dark-mode .carousel-view-all-btn:hover {
    color: #000000 !important;
}

/* Fonte customizada BATTLE ROAD para o nome do clube e títulos */
.brand-font {
    font-family: 'Battle Road', 'Rye', serif;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Efeito de labaredas de fogo realistas ao redor das letras (equilibrado) */
.fire-text {
    font-family: 'Battle Road', 'Rye', serif;
    letter-spacing: 0.05em;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding: 0 10px;
    text-shadow:
        0 0 1px #ffffff,
        0 0 2px #f5f5dc,
        0 0 3px #e8d5b7,
        0 0 4px #d6c9a8;
    animation: fire-pulse 3s ease-in-out infinite;
}

/* Labaredas usando pseudo-elemento (equilibrado) */
.fire-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    filter: blur(2px);
    text-shadow:
        0 -3px 6px #d6c9a8,
        0 -6px 12px #e8d5b7,
        3px -3px 6px #c4b896,
        -3px -3px 6px #c4b896;
    animation: flames-flicker 2s ease-in-out infinite alternate;
}

/* Labaredas adicionais no topo (equilibrado) */
.fire-text::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: 100%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(245, 245, 220, 0.12) 0%, rgba(232, 213, 183, 0.08) 20%, rgba(214, 201, 168, 0.04) 40%, transparent 70%);
    filter: blur(6px);
    animation: flames-rise 2.5s ease-in-out infinite;
    z-index: -1;
}

/* Animação de pulsação do fogo (equilibrado) */
@keyframes fire-pulse {
    0%, 100% {
        text-shadow:
            0 0 1px #ffffff,
            0 0 2px #f5f5dc,
            0 0 3px #e8d5b7,
            0 0 4px #d6c9a8;
    }
    50% {
        text-shadow:
            0 0 2px #ffffff,
            0 0 3px #f5f5dc,
            0 0 5px #e8d5b7,
            0 0 6px #d6c9a8;
    }
}

/* Animação de cintilação das labaredas (equilibrado) */
@keyframes flames-flicker {
    0% {
        opacity: 0.15;
        filter: blur(2px);
        text-shadow:
            0 -3px 6px #d6c9a8,
            0 -6px 12px #e8d5b7,
            3px -3px 6px #c4b896,
            -3px -3px 6px #c4b896;
    }
    100% {
        opacity: 0.25;
        filter: blur(3px);
        text-shadow:
            0 -4px 8px #e8d5b7,
            0 -8px 16px #f5f5dc,
            4px -4px 8px #d6c9a8,
            -4px -4px 8px #d6c9a8;
    }
}

/* Animação de subida das labaredas (equilibrado) */
@keyframes flames-rise {
    0% {
        opacity: 0.1;
        top: -15px;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.15;
        top: -25px;
        transform: translateX(-50%) scale(1.08);
    }
    100% {
        opacity: 0.08;
        top: -35px;
        transform: translateX(-50%) scale(0.95);
    }
}

/* Versão para texto em fundo claro (equilibrado) */
.fire-text-light {
    font-family: 'Battle Road', 'Rye', serif;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    padding: 0 10px;
    text-shadow:
        0 0 1px #aaa,
        0 0 2px #d6c9a8,
        0 0 3px #c4b896,
        0 0 4px #b5a582;
    animation: fire-pulse-light 3s ease-in-out infinite;
}

/* Labaredas usando pseudo-elemento (versão clara e equilibrado) */
.fire-text-light::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.18;
    filter: blur(2px);
    text-shadow:
        0 -3px 6px #c4b896,
        0 -6px 12px #d6c9a8,
        3px -3px 6px #b5a582,
        -3px -3px 6px #b5a582;
    animation: flames-flicker-light 2s ease-in-out infinite alternate;
}

/* Labaredas adicionais no topo (versão clara e equilibrado) */
.fire-text-light::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 100%;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(214, 201, 168, 0.15) 0%, rgba(196, 184, 150, 0.1) 30%, transparent 60%);
    filter: blur(5px);
    animation: flames-rise-light 2.5s ease-in-out infinite;
    z-index: -1;
}

/* Animação de pulsação (versão clara e equilibrado) */
@keyframes fire-pulse-light {
    0%, 100% {
        text-shadow:
            0 0 1px #aaa,
            0 0 2px #d6c9a8,
            0 0 3px #c4b896,
            0 0 4px #b5a582;
    }
    50% {
        text-shadow:
            0 0 2px #bbb,
            0 0 3px #e8d5b7,
            0 0 5px #d6c9a8,
            0 0 6px #c4b896;
    }
}

/* Animação de cintilação (versão clara e equilibrado) */
@keyframes flames-flicker-light {
    0% {
        opacity: 0.15;
        filter: blur(2px);
        text-shadow:
            0 -3px 6px #c4b896,
            0 -6px 12px #d6c9a8,
            3px -3px 6px #b5a582,
            -3px -3px 6px #b5a582;
    }
    100% {
        opacity: 0.22;
        filter: blur(3px);
        text-shadow:
            0 -4px 8px #d6c9a8,
            0 -8px 16px #e8d5b7,
            4px -4px 8px #c4b896,
            -4px -4px 8px #c4b896;
    }
}

/* Animação de subida (versão clara e equilibrado) */
@keyframes flames-rise-light {
    0% {
        opacity: 0.12;
        top: -10px;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.18;
        top: -20px;
        transform: translateX(-50%) scale(1.08);
    }
    100% {
        opacity: 0.1;
        top: -30px;
        transform: translateX(-50%) scale(0.95);
    }
}

/* Animação da linha no hover (esquerda para a direita) */
.hover-line-animation {
    position: relative;
    display: inline-block;
}

.hover-line-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #262626; /* neutral-800 */
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.hover-line-animation:hover::after {
    transform: scaleX(1);
}

/* Animação de fade suave para o slideshow */
#slideshow-image {
    transition: opacity 0.8s ease-in-out;
}

/* Botão voltar ao topo */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    width: 3rem;
    height: 3rem;
    background-color: #262626;
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: fixed;
}

#backToTop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #d6d3d1; /* stone-300 - bege */
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 9999px;
}

#backToTop:hover::before {
    width: 100%;
}

#backToTop:hover {
    color: #262626;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#backToTop:active {
    transform: translateY(-2px) scale(1.05);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Logo redonda */
.logo-round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-round:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Logo navbar redonda */
.navbar-logo-round {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #262626;
}

@media (min-width: 768px) {
    .navbar-logo-round {
        height: 50px;
        width: 50px;
    }
}

/* Hero section fullscreen */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background hero com transição suave */
#hero-bg-image {
    transition: opacity 1s ease-in-out;
}

/* Melhorias nos cards de pontos de coleta */
.collection-point-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.collection-point-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1) !important;
}

/* Ícones de redes sociais melhorados */
.social-icon-link {
    display: inline-block;
}

.social-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f4 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #262626;
    position: relative;
    overflow: hidden;
}

.social-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #262626 0%, #404040 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.social-icon-link:hover .social-icon-wrapper::before {
    left: 0;
}

.social-icon-link:hover .social-icon-wrapper {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.social-icon-wrapper i {
    position: relative;
    z-index: 1;
}

/* Cores específicas para cada rede no hover */
.social-icon-link:nth-child(1):hover .social-icon-wrapper::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon-link:nth-child(2):hover .social-icon-wrapper::before {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.social-icon-link:nth-child(3):hover .social-icon-wrapper::before {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

@media (max-width: 768px) {
    .social-icon-wrapper {
        width: 70px;
        height: 70px;
    }
}

/* Moldura de imagem com efeito */
.image-frame {
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f4 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Melhoria na transição do menu mobile */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

/* Scroll suave personalizado para navegadores webkit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 5px;
}

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

/* Melhoria na tipografia */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animação de entrada suave melhorada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Player de Rádio Estilizado */
.radio-player {
    max-width: 380px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f4 100%);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.radio-player-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-icon {
    text-align: center;
    color: #262626;
    animation: pulse 2s ease-in-out infinite;
}

.radio-icon i {
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.radio-info {
    text-align: center;
    color: #262626;
}

.radio-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.play-pause-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #262626 0%, #404040 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.play-pause-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #d6d3d1 0%, #e7e5e4 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.play-pause-btn:hover::before {
    width: 100%;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-pause-btn:hover i {
    color: #262626;
}

.play-pause-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.play-pause-btn:active {
    transform: scale(1.05);
}

.play-pause-btn.playing {
    animation: rotate 3s linear infinite;
}

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 200px;
    color: #262626;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #d6d3d1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #262626;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #404040;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #262626;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #404040;
}

/* Visualizador de ondas sonoras */
.audio-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-wave.active {
    opacity: 1;
}

.audio-wave span {
    width: 3px;
    height: 8px;
    background: #262626;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0s; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 24px;
    }
}

@media (max-width: 640px) {
    .radio-player {
        padding: 1rem;
        max-width: 320px;
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
    }
    
    .radio-icon i {
        font-size: 1.75rem;
    }
}

/* Imagens clicáveis gerais - zoom progressivo suave */
.clickable-image {
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.clickable-image:hover {
    transform: scale(1.08);
}

/* Desabilitar hover em dispositivos touch */
@media (hover: none) {
    .clickable-image:hover {
        transform: none;
    }
}

/* Modal de Imagem Expandida */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.image-modal-close:hover {
    color: #d6d3d1;
    transform: rotate(90deg) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.grid-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    /* Otimizações de performance para scroll suave */
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.grid-modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Otimizações para renderização */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.grid-modal-content img:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Botões de navegação no modal de imagem */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #262626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
}

.modal-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modal-nav-btn-prev {
    left: 2rem;
}

.modal-nav-btn-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .image-modal {
        padding: 10px;
    }
    
    .image-modal-content {
        max-width: 98%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .image-modal-close {
        top: 15px;
        right: 15px;
        font-size: 36px;
        width: 40px;
        height: 40px;
    }
    
    /* Botões de navegação dentro da imagem no mobile */
    .modal-nav-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.85);
    }
    
    .modal-nav-btn-prev {
        left: 0.5rem;
    }
    
    .modal-nav-btn-next {
        right: 0.5rem;
    }
    
    .grid-modal-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .grid-modal-content img {
        height: 150px;
    }
}

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

/* Animação de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade extra */
@media (max-width: 768px) {
    .logo-round {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }
    
    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Ajustes gerais para mobile */
    body {
        font-size: 16px;
    }
    
    /* Navbar mobile */
    nav {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .logo-round {
        width: 80px;
        height: 80px;
    }
    
    #backToTop {
        bottom: 0.75rem;
        right: 0.75rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    /* Ajustes para carrossel hero em telas pequenas */
    #hero-bg-image {
        filter: blur(4px) brightness(0.6) !important;
    }
    
    /* Ajuste de texto hero */
    #home h1 {
        font-size: 1.75rem !important;
    }
    
    #home p {
        font-size: 0.95rem !important;
    }
}

/* Loading state para imagens */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Botões com animação de preenchimento */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #d6d3d1; /* stone-300 - bege */
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #262626; /* neutral-800 */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Botão secundário */
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #d6d3d1; /* stone-300 - bege */
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: #262626; /* neutral-800 */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Efeito touch para mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active::before,
    .btn-secondary:active::before {
        left: 0;
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        color: #262626;
    }
}

/* Carrossel */
#carousel-image,
#carousel-sobre-image {
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #262626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.carousel-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: #ffffff;
    border-color: #262626;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .carousel-btn-prev {
        left: 0.25rem;
    }
    
    .carousel-btn-next {
        right: 0.25rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}
