/*
Theme Name: Atividade Notícias Theme
Author: Dubbox Tecnologia
Author URI: https://wordpress.org
Description: Tema para o portal de notícias Atividade Notícias.
Version: 1.0
Text Domain: atividade_noticias_theme
*/

/* Custom logo sizing */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
}

/* Mobile header logo */
.uc-bottom-navbar .uc-navbar-left .uc-logo .custom-logo {
    height: 40px;
}

/* Desktop header logo */
.uc-bottom-navbar .uc-navbar-center .uc-logo .custom-logo {
    height: 56px;
}

@media (max-width: 767px) {
  .uc-bottom-navbar .uc-navbar-center .uc-logo .custom-logo {
    width: min(70vw, 250px);
    height: auto;
    max-width: 100%;
  }
}

/* Header radio floating player */
.header-audio-player {
    position: fixed;
    right: 90px;
    bottom: 15px;
    z-index: 999;
    margin: 0;
}

.header-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(131, 131, 131, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.uc-dark .header-radio-pill {
    background: rgba(18, 18, 18, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-radio-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.header-radio-pill.is-buffering .header-radio-button i {
    opacity: 0;
}

.header-radio-pill.is-buffering .header-radio-button::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: header-radio-spin 1s linear infinite;
}

.header-radio-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2f2f2f;
}

.uc-dark .header-radio-live {
    color: #e6e6e6;
}

.header-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e44b4b;
    box-shadow: 0 0 0 0 rgba(228, 75, 75, 0.7);
    animation: header-radio-pulse 1.8s infinite;
}

.header-radio-pill.is-playing .header-radio-dot {
    animation-play-state: running;
}

.header-radio-pill:not(.is-playing) .header-radio-dot {
    animation-play-state: paused;
    box-shadow: 0 0 0 0 rgba(228, 75, 75, 0.0);
    opacity: 0.6;
}

.header-radio-volume {
    width: 80px;
    display: none;
}

.header-radio-pill:hover .header-radio-volume {
    display: inline-block;
}

.header-radio-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-radio-wave {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}

.header-radio-wave span {
    width: 3px;
    background: var(--bs-primary);
    animation: header-radio-wave 1s ease-in-out infinite alternate;
}

.header-radio-wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.header-radio-wave span:nth-child(3) {
    animation-delay: 0.4s;
}

.header-radio-pill.is-playing .header-radio-wave {
    display: inline-flex;
}

@media (max-width: 576px) {
    .header-audio-player {
        right: 20px;
        bottom: 80px;
    }

    .header-radio-text {
        display: none;
    }

    .header-radio-pill {
        padding: 6px 8px;
    }
}

@keyframes header-radio-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(228, 75, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(228, 75, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 75, 75, 0);
    }
}

@keyframes header-radio-wave {
    from {
        height: 4px;
    }
    to {
        height: 15px;
    }
}

/* Primary color override */
:root {
    --color-primary: #ff6f00;
    --color-primary-500: #ff6f00;
    --bs-primary: #ff6f00;
    --bs-primary-500: #ff6f00;
}

.text-primary {
    color: #ff6f00 !important;
}

.bg-primary {
    background-color: #ff6f00 !important;
}

.border-primary {
    border-color: #ff6f00 !important;
}

.btn-primary {
    --bs-btn-bg: #ff6f00;
    --bs-btn-border-color: #ff6f00;
    --bs-btn-hover-bg: #e66100;
    --bs-btn-hover-border-color: #d65b00;
    --bs-btn-active-bg: #cc5800;
    --bs-btn-active-border-color: #bf5200;
    --bs-btn-focus-shadow-rgb: 255, 111, 0;
    --bs-btn-disabled-bg: #ff6f00;
    --bs-btn-disabled-border-color: #ff6f00;
}

.btn-outline-primary {
    --bs-btn-color: #ff6f00;
    --bs-btn-border-color: #ff6f00;
    --bs-btn-hover-bg: #ff6f00;
    --bs-btn-hover-border-color: #ff6f00;
    --bs-btn-active-bg: #ff6f00;
    --bs-btn-active-border-color: #ff6f00;
    --bs-btn-disabled-color: #ff6f00;
    --bs-btn-disabled-border-color: #ff6f00;
    --bs-btn-focus-shadow-rgb: 255, 111, 0;
}

.btn-alt-primary {
    color: #ff6f00 !important;
}

.btn-alt-primary:hover,
.btn-alt-primary:focus {
    background: #ff6f00 !important;
    color: #fff !important;
}

/* Top navbar background */
.uc-top-navbar {
    background-color: #ff6f00 !important;
}

/* Front page link hover */
.home .hover\:text-primary:hover,
.home a.hover\:text-primary:hover {
    color: #ff6f00 !important;
}


@keyframes header-radio-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
