/* ====================================
          Variáveis e Importações
   ==================================== */

/* ---- Importação de Fontes ---- */
@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap);
@import url(https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap);
@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);

/* ---- Variáveis CSS ---- */
:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: rgb(255, 49, 49);

    --heading-font: 'Poppins', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
}

/* ====================================
          Configurações de Base
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--heading-font);
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 80vh;
    padding: 10rem 12% 10rem;
    padding-top: calc(10rem + 80px); /* Ajuste para o header fixo */
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

span {
    color: var(--main-color);
}


/* ====================================
            Header e Navegação
   ==================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 12%;
    background-color: rgba(0, 0, 0, 0.6);
}

.logo {
    max-width: 150px;
    height: auto;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    color: var(--main-color);
}

.banner {
    width: 468px;
    height: 60px;
    margin: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    max-width: 100%;
    height: auto;
}

.header .social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.header .social a {
    font-size: 2.5rem;
    color: var(--main-color);
    transition: color 0.3s ease-in-out;
}

.header .social a:hover {
    color: white;
}

.navbar {
    width: 100%;
    background-color: var(--main-color);
    padding: 1rem 12%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.navbar nav ul a {
    padding: 0 15px;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 500;
    transition: color 0.3s;
    border-right: 1px solid black;
    white-space: nowrap;
}

.navbar nav ul a:last-child {
    border-right: none;
}

.navbar nav ul a:hover,
.navbar nav ul a.active {
    color: var(--bg-color);
}

/* ---- Menu de Aplicativos (Dropdown) ---- */
.app-menu {
    position: relative;
    display: inline-block;
    align-items: center;
    height: 1.8rem;
}

.menu-button {
    background-color: var(--main-color);
    color: white;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 500;
    height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button i {
    margin-left: 5px;
    font-size: 3rem;
}

.contato .menu-button {
    border-right: 1px solid black;
}

.menu-button:hover {
    color: var(--bg-color);
}

.app-menu:hover .dropdown, 
.contato:hover .dropdown {
    display: block;
}

#menu-icon {
    display: none;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 135px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    top: 170%;
    left: 0;
    padding: 5px 0;
}

.app-menu .dropdown a,
.contato .dropdown a {
    color: black;
    display: block;
    padding: 10px 15px;
    font-size: 1.6rem;
    transition: background-color 0.3s;
    border-right: none;
}

.app-menu .dropdown a:hover,
.contato .dropdown a:hover {
    background-color: #f0f0f0;
}

/* ----------- Busca ----------- */
.search-icon {
    position: relative;
    cursor: pointer;
    color: var(--main-color);
    font-size: 2.5rem;
    transition: color 0.3s ease-in-out;
}

.search-icon:hover {
    color: white;
}

.search-box {
    display: none;
    position: absolute;
    top: 70px;
    right: 12%;
    background-color: white;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 230px;
    flex-direction: column;
    gap: 10px;
}

.search-box.active {
    display: flex;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.6rem;
}

.search-box button {
    padding: 10px 36%;
    margin-top: 5px;
    background-color: var(--main-color);
    color: white;
    font-size: 1.6rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: black;
}


/* ====================================
            Seções Específicas
   ==================================== */

/*------------- Player Radio --------------- */
#radio-player {
    width: 80%;
    max-width: 60%;
    padding: 30px;
    background-color: var(--second-bg-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 180px auto;
    text-align: center;
}

#radio-player h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 50px;
}

audio {
    width: 80%;
    outline: none;
}

/* Estilo para a barra de áudio */
audio::-webkit-media-controls-panel {
  background-color: var(--main-color); /* Cor da barra de controle */
  color: black;
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: black; /* Cor dos controles */
}

/* .header-player {
    background-color: #ffffff;
    padding: 5px 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-player audio {
    width: 300px;
    outline: none;
}

.banner {
    width: 468px;
    height: 60px;
    border-radius: 0px;
    margin: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    max-width: 100%;
    height: auto;
} */

/*------------- Carrossel de Colaborators ------------- */
.team-carousel-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--second-bg-color);
    min-height: 80vh;
    overflow: hidden;
    position: relative;
}

.team-carousel-section h2 {
    margin-top: 50px;
    margin-bottom: 10px;
    color: white;
    font-size: 80px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 200px 0;
}

.carousel-track {
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
    height: 400px; 
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
    perspective: 700px;
}
.carousel-track.no-transition {
    transition: none !important; /* Desabilita a transição para saltos instantâneos */
}

.carousel-card {
    position: absolute;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 380px;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(0) scale(0.8) translateY(0) rotateY(0deg) translateZ(-200px);
    z-index: 1;
}

.carousel-card.no-transition {
    transition: none !important;
}

.carousel-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) translateY(0) rotateY(0deg) translateZ(0);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-card.active:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0px 50px var(--main-color);
}

.carousel-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #eee;
}

.carousel-card h3 {
    margin: 10px 0 5px;
    color: #444;
    font-size: 4em;
}

.carousel-card p {
    color: #777;
    font-size: 2.5em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--main-color);
    color: black;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 3rem;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(255, 49, 49, 0.4);
    color: white;
}

.carousel-button.prev {
    left: 50px;
}

.carousel-button.next {
    right: 50px;
}

/* ---- Página de Programação ---- */
.programming {
    background: var(--bg-color);
}

.programming-box {
    background-color: var(--second-bg-color);
    width: 100%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 200px;
}

.programming .heading {
    margin-top: 10rem;
    margin-bottom: 7.5rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.programming-item {
    min-height: 650px;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(238, 238, 238, 0.2);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 30px 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    gap: 1.5rem;
    color: white;
    transition: 0.4s ease-in-out;
}

.programming-item:hover {
    border: 3px solid var(--main-color);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 50px var(--main-color);
}

.programming-item h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.programming-item p {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* ---- Página 404 ---- */
.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    height: 100vh;
    text-align: center;
}

.page-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.page-404-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.page-404-content h1 {
    font-size: 10rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.page-404-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.page-404-content p:last-of-type {
    margin-bottom: 3.5rem;
}


/* ====================================
                Footer
   ==================================== */
.footer{
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
}

.footer .social a{
    display: inline-block;
    width: 5rem;
    height: 5rem;
    font-size: 3rem;
    border-radius: 50%;
    color: var(--main-color);
    line-height: 5rem;
    margin: 0 1rem;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover{
    color: white;
    transform: scale(1.3);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li{
    display: inline-block;
    margin: 0 15px;
}

.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}


/* ====================================
               Utilitários
   ==================================== */

/* ---- Barra de Rolagem ---- */
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}

/* ---- Botão "Voltar ao Topo" ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0);
    color: var(--main-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 50px;
    display: none;
    transition: background-color 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* ====================================
             Responsividade
   ==================================== */

/* ---- Para Telas Muito Grandes (<- 1600px) ---- */
@media (max-width: 1600px) {
    html {
        font-size: 55%;
    }
    .top-bar .navbar {
        padding-left: 10%;
        padding-right: 10%;
    }
    section {
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* ---- Para Desktops (<- 1200px) ---- */
@media (max-width: 1200px) {
    html {
        font-size: 45%;
    }
    .top-bar .navbar {
        padding-left: 8%;
        padding-right: 8%;
    }
    section {
        padding-left: 8%;
        padding-right: 8%;
    }
    .header .social {
        gap: 1.5rem;
    }
    .banner {
        width: 380px;
        height: 50px;
        margin: 0 10px;
    }
    .navbar ul a {
        padding: 0 10px;
        font-size: 1.6rem;
    }
    .programming-item {
        min-height: 550px;
        max-width: 380px;
        padding: 20px 40px;
    }
}

/* ---- Para Tablets (<- 991px) ---- */
@media (max-width: 991px) {
    .header {
        padding: 0;
    }
    .top-bar {
        padding: 1.5rem 5%; /*modifiquei aqui*/
        flex-wrap: nowrap;
        position: relative;
    }
    .banner {
        display: none;
    }
    .logo {
        margin: 0 auto;
        z-index: 1002;
        position: relative;
    }
    .header .social {
        display: flex;
        width: auto;
        gap: 1rem;
        padding-left: 0;
    }
    #menu-icon {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        transform: none; /* Remove a transformação */
        z-index: 1001;
        background-color: var(--main-color);
        font-size: 3.6rem;
        color: var(--bg-color);
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--main-color);
        padding: 1rem 5%;
        display: none;
        flex-direction: column;
        z-index: 999;
    }
    .navbar.active {
        display: flex;
    }
    .navbar nav ul {
        flex-direction: column;
        text-align: center;
    }
    .navbar nav ul a {
        display: block;
        padding: 2rem;
        font-size: 2.5rem;
        border-right: none;
        border-bottom: 1px solid var(--bg-color);
        white-space: normal;
    }
    .navbar nav ul a:first-of-type {
        border-top: 1px solid var(--bg-color);
    }

    .navbar nav ul a:last-child {
        border-bottom: none;
    }

    /* Ajustes para os menus dropdown em mobile */
    .menu-button {
        width: 100%;
        font-size: 2.5rem;
        padding-bottom: 2rem 0;
    }
    .app-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        align-items: center;
        padding: 3rem 0;
        margin-top: 5px;
    }
    .app-menu .menu-button,
    .contato .menu-button {
        padding: .2rem 0 3.2rem;
        border-right: none;
        border-bottom: 1px solid var(--bg-color);
    }
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 2px;
        background-color: var(--text-color);
    }
    .app-menu .dropdown a,
    .contato .dropdown a {
        color: var(--bg-color);
        display: block;
        padding: 2rem 20px;
        font-size: 2rem;
        transition: background-color 0.3s;
    }
    .app-menu .dropdown a:hover,
    .contato .dropdown a:hover {
        background-color: rgba(0, 0, 0, 0.15);
        color: var(--bg-color);
    }
    .search-box {
        top: 60px;
        right: 5%;
        width: 90%;
        z-index: 1005;
    }
    .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .programming {
        padding: 20rem 5% 5rem;
    }
    .programming .heading{
        font-size: 6rem;
        margin-top: 5rem;
    }
    .programming-item {
        min-height: 450px;
        max-width: unset;
        margin: 1rem;
        padding: 20px 30px;
    }
}

/* ---- Para Mobile (<- 768px) ---- */
@media (max-width: 768px) {
    html {
        font-size: 40%;
    }
    .top-bar {
        padding: 1rem 3%;
    }
    section {
        padding: 5rem 3% 5rem;
    }
    .logo {
        max-width: 120px;
    }
    .heading {
        font-size: 5rem;
    }
    #radio-player {
        width: 90%;
        max-width: unset;
        padding: 20px;
        margin: 120px auto 50px;
    }
    #radio-player h2, 
    .team-carousel-section h2 {
        font-size: 6rem;
        padding-bottom: 20px;
    }
    #radio-player audio {
        width: 100%;
    }
    .wrapper {
        grid-template-columns: 1fr;
    }
    .programming-item {
        min-height: 400px;
        max-width: 90%;
        margin: 1rem auto;
        padding: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .programming-item h2 {
        font-size: 3.5rem;
    }
    .programming-item p {
        font-size: 2.5rem;
    }
    .carousel-card {
        width: 250px;
        height: 320px;
    }
    .carousel-card img {
        width: 100px;
        height: 100px;
    }
    .carousel-button {
        padding: 8px 12px;
        font-size: 1em;
    }
    .footer ul li {
        padding: 0 8px;
        font-size: 2.5rem;
    }
    .footer .social a {
        width: 4rem;
        height: 4rem;
        font-size: 4rem;
        line-height: 4rem;
        margin: 0 2rem;
    }
    .page-404 {
        flex-direction: column;
        gap: 5rem;
        padding: 5rem 3%;
    }
    .page-404-content h1 {
        font-size: 8rem;
    }
    .page-404-content h3 {
        font-size: 3rem;
    }
    .page-404-content p {
        font-size: 1.4rem;
    }
}

/* ---- Para Mobile Pequeno (<= 450px) ---- */
@media (max-width: 450px) {
    html {
        font-size: 40%;
    }
    .top-bar {
        padding: 1rem 2%;
    }
    section {
        padding: 4rem 2% 4rem;
    }
    .search-box {
        right: 2%;
    }
    .search-box button {
        padding: 8px 0;
    }
    .carousel-card{
        width: 220px;
        height: 300px;
        padding: 15px;
    }
    .carousel-card h3 {
        font-size: 3rem;
    }
    .carousel-card p {
        font-size: 1.9rem;
    }
    .carousel-button {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
    .carousel-track {
        height: 30px;
    }
    .footer ul li {
        display: block;
        padding: 5px 0;
    }
}