/**
 * Radio Someș Branding Assets
 * Backgrounds, patterns și elemente vizuale specifice
 *
 * @package Dedicatii_Premium
 */

/* ====================================
   RADIO FREQUENCY BACKGROUND PATTERN
   Pattern animat cu frecvențe radio
   ==================================== */

.radio-frequency-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
    pointer-events: none;
}

.radio-frequency-pattern {
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 215, 0, 0.05) 2px,
            rgba(255, 215, 0, 0.05) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.03) 10px,
            rgba(255, 215, 0, 0.03) 11px);
    animation: frequency-pulse 4s ease-in-out infinite;
}

@keyframes frequency-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Wave Pattern - frecvențe radio stilizate */
.radio-wave-pattern {
    position: absolute;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent 50%, var(--color-gold) 50%);
    background-size: 100px 100px;
    opacity: 0.03;
    animation: wave-move 20s linear infinite;
}

@keyframes wave-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ====================================
   RADIO SOMES BRANDED ELEMENTS
   ==================================== */

/* Hero overlay cu gradient Radio Someș */
.rs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top,
            rgba(255, 215, 0, 0.15) 0%,
            rgba(196, 30, 58, 0.08) 50%,
            transparent 100%);
    pointer-events: none;
}

/* Frequency bars animation - pentru decorare */
.frequency-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.frequency-bar {
    width: 6px;
    background: var(--gradient-gold);
    border-radius: 3px 3px 0 0;
    animation: bar-bounce 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.frequency-bar:nth-child(1) {
    animation-delay: 0s;
    height: 20%;
}

.frequency-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 40%;
}

.frequency-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 60%;
}

.frequency-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 80%;
}

.frequency-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 100%;
}

.frequency-bar:nth-child(6) {
    animation-delay: 0.5s;
    height: 70%;
}

.frequency-bar:nth-child(7) {
    animation-delay: 0.6s;
    height: 50%;
}

.frequency-bar:nth-child(8) {
    animation-delay: 0.7s;
    height: 30%;
}

@keyframes bar-bounce {

    0%,
    100% {
        transform: scaleY(0.6);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ====================================
   LOGO RADIO SOMES CONTAINER
   ==================================== */

.rs-logo-container {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    padding: 0;
    max-height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform var(--transition-normal);
    overflow: hidden !important;
}

.rs-logo-container::before {
    display: none;
}

.rs-logo-container:hover::before {
    opacity: 1;
}

.rs-logo-container:hover {
    transform: translateY(-2px);
}

.rs-logo-image {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    transition: all var(--transition-normal);
    animation: logo-glow 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    }
}

.rs-logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    transform: scale(1.05);
    animation: none;
}

.rs-logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.rs-logo-text:hover {
    transform: scale(1.02);
}

.rs-logo-text .radio {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rs-logo-text .somes {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.rs-logo-text .somes::after {
    content: 'SOMEȘ';
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    filter: blur(8px);
    z-index: -1;
}

/* SVG Logo specific styling */
.rs-logo-svg {
    max-width: 280px;
    height: auto;
    width: 100%;
}

/* Traditional PNG Logo specific styling */
.rs-logo-traditional {
    max-height: 60px !important;
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* ====================================
   BRANDED CARDS & SECTIONS
   ==================================== */

.rs-branded-card {
    position: relative;
    overflow: hidden;
}

.rs-branded-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.02) 10px,
            rgba(255, 215, 0, 0.02) 20px);
    animation: diagonal-move 20s linear infinite;
}

@keyframes diagonal-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Frequency badge decorativ */
.rs-frequency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.rs-frequency-badge .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gradient-gold);
    border-radius: 50%;
    color: var(--color-black);
    font-size: 0.875rem;
}

/* ====================================
   DECORATIVE ELEMENTS
   ==================================== */

/* Microphone icon decorativ */
.rs-microphone-deco {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.rs-microphone-deco::before {
    content: '🎤';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mic-pulse 2s ease-in-out infinite;
}

.rs-microphone-deco::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes mic-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes ring-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Radio signal waves decorative */
.rs-signal-waves {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-signal-waves::before,
.rs-signal-waves::after {
    content: '';
    position: absolute;
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    animation: signal-expand 2s ease-out infinite;
}

.rs-signal-waves::before {
    width: 100%;
    height: 100%;
}

.rs-signal-waves::after {
    width: 60%;
    height: 60%;
    animation-delay: 0.5s;
}

@keyframes signal-expand {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ====================================
   SECTION DIVIDERS
   ==================================== */

.rs-section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.rs-section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Wave divider */
.rs-wave-divider {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* ====================================
   ON AIR INDICATOR
   ==================================== */

.rs-on-air-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.6);
    animation: on-air-pulse 2s ease-in-out infinite;
}

.rs-on-air-badge::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-white);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes on-air-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
    }

    50% {
        box-shadow: 0 0 40px rgba(196, 30, 58, 0.9);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .rs-logo-container {
        padding: 0.35rem 0.75rem;
    }

    .rs-logo-image {
        height: 45px;
    }

    .rs-logo-svg {
        max-width: 200px;
    }

    .rs-logo-text {
        font-size: 1.4rem;
    }

    .frequency-bars {
        height: 40px;
    }

    .frequency-bar {
        width: 4px;
    }
}

/* ====================================
   CUSTOM PROPERTIES OVERRIDE
   Pentru branding Radio Someș specific
   ==================================== */

:root {
    /* Radio Someș accent colors */
    --rs-primary: #FFD700;
    --rs-secondary: #C41E3A;
    --rs-accent: #228B22;

    /* Poate fi override-uit prin Customizer */
}

/* Badge "Radio Someș Oficial" */
.rs-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: var(--color-black);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--glow-gold);
}

.rs-official-badge i {
    font-size: 1rem;
}

/* ====================================
   FLYING FREQUENCIES ANIMATION
   Frecvențe FM care zboară prin pagină
   ==================================== */
.flying-frequencies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.flying-frequency {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--color-gold);
    opacity: 0.15;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: float-frequency linear infinite;
}

.flying-frequency.large {
    font-size: clamp(1.5rem, 2vw, 2rem);
    opacity: 0.2;
}

.flying-frequency.small {
    font-size: clamp(0.875rem, 1.2vw, 1.2rem);
    opacity: 0.1;
}

@keyframes float-frequency {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate));
        opacity: 0;
    }
}

/* ====================================
   FLYING GOLD COINS ANIMATION
   Monede de aur care zboară prin pagină
   ==================================== */
.flying-coins-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.flying-coin {
    position: absolute;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    opacity: 0.2;
    animation: float-coin linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.flying-coin.small {
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    opacity: 0.15;
}

.flying-coin.large {
    font-size: clamp(2rem, 2.5vw, 3rem);
    opacity: 0.25;
}

@keyframes float-coin {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    50% {
        transform: translate(calc(var(--tx) / 2), calc(var(--ty) / 2)) rotate(180deg) scale(1.2);
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}