/* Opinor — site público: animações, gráficos e vida visual */

@keyframes opinor-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes opinor-pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(232, 150, 12, 0.35); }
    50% { box-shadow: 0 0 45px rgba(232, 150, 12, 0.65); }
}

@keyframes opinor-bar-rise {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes opinor-bar-fall {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.55); }
}

@keyframes opinor-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes opinor-fade-up {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes opinor-orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes opinor-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes opinor-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fundo vivo */
body.layout-site {
    position: relative;
    overflow-x: hidden;
}

body.layout-site::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, #faf8f5 0%, #f0e8dc 35%, #eae2d5 70%, #faf8f5 100%);
    background-size: 400% 400%;
    animation: opinor-gradient-shift 18s ease infinite;
}

body.layout-site::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 150, 12, 0.18) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    z-index: -1;
    animation: opinor-float 8s ease-in-out infinite;
    pointer-events: none;
}

.opinor-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.opinor-orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(62, 42, 26, 0.12);
    top: 10%;
    left: -80px;
    animation: opinor-float 7s ease-in-out infinite;
}

.opinor-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(232, 150, 12, 0.25);
    bottom: 15%;
    right: 5%;
    animation: opinor-float 9s ease-in-out infinite reverse;
}

/* Entrada escalonada */
.opinor-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.opinor-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.opinor-reveal-delay-1 { transition-delay: 0.1s; }
.opinor-reveal-delay-2 { transition-delay: 0.2s; }
.opinor-reveal-delay-3 { transition-delay: 0.35s; }
.opinor-reveal-delay-4 { transition-delay: 0.5s; }

/* Dashboard animado */
.opinor-live-dash {
    background: linear-gradient(145deg, #1a1208 0%, #2d1f0a 100%);
    border-radius: 20px;
    border: 1px solid rgba(232, 150, 12, 0.35);
    box-shadow: 0 30px 60px rgba(17, 12, 5, 0.35);
    overflow: hidden;
    animation: opinor-pulse-glow 4s ease-in-out infinite;
}

.opinor-live-dash-header {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(232, 150, 12, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
}

.opinor-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    display: inline-block;
    animation: opinor-pulse-glow 1.5s ease infinite;
    margin-right: 6px;
}

.opinor-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 280px;
    padding: 20px 24px 8px;
}

.opinor-chart-bar {
    flex: 1;
    max-width: 36px;
    background: linear-gradient(to top, #3E2A1A, #E8960C);
    border-radius: 6px 6px 2px 2px;
    transform-origin: bottom;
    animation: opinor-bar-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    min-height: 12px;
}

.opinor-chart-bar.anim-loop {
    animation: opinor-bar-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both,
               opinor-bar-fall 3s ease-in-out 1.2s infinite;
}

.opinor-chart-bar:nth-child(1) { height: 45%; animation-delay: 0.05s; }
.opinor-chart-bar:nth-child(2) { height: 72%; animation-delay: 0.15s; }
.opinor-chart-bar:nth-child(3) { height: 58%; animation-delay: 0.25s; }
.opinor-chart-bar:nth-child(4) { height: 88%; animation-delay: 0.35s; }
.opinor-chart-bar:nth-child(5) { height: 65%; animation-delay: 0.45s; }
.opinor-chart-bar:nth-child(6) { height: 95%; animation-delay: 0.55s; }
.opinor-chart-bar:nth-child(7) { height: 78%; animation-delay: 0.65s; }

.opinor-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(232, 150, 12, 0.15);
}

.opinor-kpi-cell {
    background: rgba(0, 0, 0, 0.35);
    padding: 14px 12px;
    text-align: center;
}

.opinor-kpi-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #E8960C;
    line-height: 1;
}

.opinor-kpi-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

/* Foto hero barbearia (substitui o dashboard nas páginas internas) */
.opinor-hero-barber {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(17, 12, 5, 0.28);
    border: 1px solid rgba(232, 150, 12, 0.35);
    min-height: 320px;
}

.opinor-hero-barber-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.opinor-hero-barber:hover .opinor-hero-barber-img {
    transform: scale(1.06);
}

.opinor-hero-barber-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(17, 12, 5, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(232, 150, 12, 0.35);
}


/* Contadores */
.opinor-counter {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary-color);
}

/* Stat cards premium */
.opinor-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 150, 12, 0.3);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    backdrop-filter: blur(8px);
}

.opinor-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 22px 45px rgba(62, 42, 26, 0.14);
    border-color: var(--accent-color);
}

/* Pilar cards */
.opinor-pilar {
    border-radius: 20px;
    border: 1px solid rgba(232, 150, 12, 0.25);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.opinor-pilar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.opinor-pilar:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(62, 42, 26, 0.12);
}

.opinor-pilar:hover::before {
    transform: scaleX(1);
}

.opinor-pilar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(62, 42, 26, 0.12), rgba(232, 150, 12, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* Ticker SEO keywords */
.opinor-seo-ticker-wrap {
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-color), #2A1B10);
    color: #fff;
    padding: 10px 0;
    margin-bottom: 0;
}

.opinor-seo-ticker {
    display: flex;
    white-space: nowrap;
    animation: opinor-ticker 40s linear infinite;
}

.opinor-seo-ticker span {
    padding: 0 28px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.92;
}

.opinor-seo-ticker span::before {
    content: 'âœ¦';
    margin-right: 10px;
    color: var(--accent-color);
}

/* CTA brilho */
.opinor-btn-wow {
    background: linear-gradient(135deg, #3E2A1A, #8a6210, #3E2A1A) !important;
    background-size: 200% auto !important;
    animation: opinor-shimmer 3s linear infinite !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    transition: transform 0.2s !important;
}

.opinor-btn-wow:hover {
    transform: scale(1.04) translateY(-2px) !important;
    color: #fff !important;
}

.opinor-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.opinor-text-gradient {
    background: linear-gradient(135deg, #3E2A1A 0%, #E8960C 50%, #3E2A1A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: opinor-shimmer 4s linear infinite;
}

.opinor-section-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(232, 150, 12, 0.2);
}

@media (max-width: 768px) {
    .opinor-chart-bars { height: 200px; padding: 16px; }
    .opinor-kpi-value { font-size: 1.1rem; }
}
