/* Gamer Tech UI - Unified V5 (Matches Hero Gamer Component) */

/* GLOBAL VARIABLES (From Hero Gamer) */
:root {
    --gamer-bg: #050b14;
    --gamer-bg-gradient: linear-gradient(180deg, #050b14 0%, #08101b 100%);
    --neon-blue: #00ffea;
    --neon-orange: #ff4d1d;
    --neon-yellow: #ffc107;
    --neon-green: #00ff9d;
    --text-tech: #8faab9;
    --text-white: #ffffff;
    --panel-border: rgba(255, 255, 255, 0.1);
    --section-pad: clamp(2.5rem, 4vw, 3.5rem);
}

/* SECTION CONTAINER (Matches .hero-gamer-section) */
.section-gamer {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: transparent;
    border: none;
}

/* DARK MODE OVERRIDES */
body.dark-theme .section-gamer h1,
body.dark-theme .section-gamer h2,
body.dark-theme .section-gamer h3,
body.dark-theme .section-gamer h4,
body.dark-theme .section-gamer h5,
body.dark-theme .section-gamer p,
body.dark-theme .section-gamer span,
body.dark-theme .section-gamer div,
body.dark-theme .section-gamer strong,
body.dark-theme .section-gamer i {
    color: var(--text-white);
    /* Default to white */
}

body.dark-theme .section-gamer p {
    color: var(--text-tech) !important;
}

/* EYEBROW (Matches .gamer-eyebrow) */
.eyebrow-tech {
    color: var(--neon-blue) !important;
    /* Default accent */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.eyebrow-tech i {
    color: inherit !important;
}

/* TITLES (Matches .gamer-title) */
.section-gamer .display-4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

body.dark-theme .section-gamer .display-4 span {
    color: transparent !important;
    -webkit-text-stroke: 1px #fff;
    /* Or specific color overrides below */
}

/* COLORS SPECIFIC */
.text-neon-blue {
    color: var(--neon-blue) !important;
}

.text-neon-orange {
    color: var(--neon-orange) !important;
}

.text-neon-yellow {
    color: var(--neon-yellow) !important;
}

.text-neon-green {
    color: var(--neon-green) !important;
}

.text-neon-purple {
    color: var(--neon-purple) !important;
}

/* TECH CARD (Adapted from .tech-btn but for feature boxes) */
.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    padding: 1.5rem;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    height: 100%;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px currentColor);
}

/* FEATURE LIST (Matches .gamer-features .feature-item) */
.tech-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--neon-blue);
    /* Default */
    box-shadow: -10px 0 20px -10px rgba(0, 255, 234, 0.1);
}

.tech-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-feature-item i {
    font-size: 1rem;
    opacity: 0.9;
}

/* BUTTONS (Matches .btn-shine-cta and .tech-btn) */
.btn-tech {
    position: relative;
    padding: 15px 35px;
    background: var(--neon-orange);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 5px 15px rgba(255, 77, 29, 0.2);
}

.btn-tech:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 29, 0.4);
    background: #ff6b3d;
}

.btn-tech-outline {
    position: relative;
    padding: 13px 33px;
    background: transparent;
    border: 1px solid currentColor;
    /* Inherits color from inline style */
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-tech-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px currentColor;
}

/* FOOTER TECH */
.footer-tech {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.98), rgba(5, 11, 20, 0.95)) !important;
    border-top: 1px solid rgba(0, 255, 234, 0.18) !important;
}

.footer-tech::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(90deg, rgba(0, 255, 234, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 234, 0.15) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.footer-tech::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 234, 0.18), transparent 50%),
        radial-gradient(circle at 90% 0%, rgba(255, 77, 29, 0.18), transparent 45%);
    opacity: 0.35;
    pointer-events: none;
}

.footer-tech .footer-top,
.footer-tech .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-tech .footer-panel {
    background: rgba(7, 14, 24, 0.72);
    border: 1px solid rgba(0, 255, 234, 0.16);
    padding: 0.95rem;
    height: 100%;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.footer-tech .footer-brand .footer-panel {
    border-color: rgba(0, 255, 234, 0.28);
}

.footer-tech .footer-title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.footer-tech .footer-title::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.6);
}

.footer-tech .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .92rem;
    line-height: 1.4;
}

.footer-tech .footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.footer-tech .footer-links a:hover::before {
    background: var(--neon-orange);
}

.footer-tech .footer-newsletter .form-control,
.footer-tech .footer-newsletter .btn {
    min-height: 46px;
}

.footer-tech .footer-note {
    color: rgba(230, 246, 255, 0.6);
    line-height: 1.4;
    font-size: .82rem;
}

.footer-tech .footer-blurb {
    font-size: .92rem;
    line-height: 1.45;
}

.footer-tech .footer-contact {
    font-size: .95rem;
}

.footer-tech .footer-links li {
    margin-bottom: .35rem;
}

.footer-tech .footer-links-row {
    margin-top: .2rem;
}

.footer-tech .footer-meta {
    font-size: .78rem;
}

@media (max-width: 991px) {
    .footer-tech .footer-panel {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .footer-tech .footer-panel {
        padding: .9rem;
    }

    .footer-tech .footer-links a::before {
        display: none;
    }
}

.footer-tech h5 {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .78rem;
}

.footer-tech p,
.footer-tech li,
.footer-tech small {
    color: rgba(230, 246, 255, 0.72);
}

.footer-tech a {
    color: rgba(230, 246, 255, 0.95);
    transition: color .2s ease;
}

.footer-tech a:hover,
.footer-tech a:focus-visible {
    color: var(--neon-orange);
}

.footer-tech .footer-divider {
    border-top-color: rgba(0, 255, 234, 0.25) !important;
    opacity: 1;
}

.footer-tech .footer-contact i {
    color: var(--neon-blue);
}

.footer-tech .form-control {
    background: rgba(7, 14, 24, 0.7);
    border: 1px solid rgba(0, 255, 234, 0.22);
    color: #ffffff;
    box-shadow: none;
}

.footer-tech .form-control::placeholder {
    color: rgba(230, 246, 255, 0.55);
}

.footer-tech .form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 .2rem rgba(0, 255, 234, 0.15);
}

.footer-tech .btn-warning {
    background: linear-gradient(90deg, #ff8c02, #ffb347);
    border: none;
    color: #0f120f;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 10px 25px rgba(255, 140, 2, 0.25);
}

.footer-tech .btn-warning:hover,
.footer-tech .btn-warning:focus-visible {
    background: linear-gradient(90deg, #ffa63d, #ffcf87);
    box-shadow: 0 12px 30px rgba(255, 140, 2, 0.35);
    color: #0f120f;
}

.footer-tech .desktop-social-icons .icon {
    fill: rgba(230, 246, 255, 0.95);
}

.footer-tech .desktop-social-icons a:hover .icon {
    fill: var(--neon-blue);
}

body.dark-theme .footer-tech {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.98), rgba(5, 11, 20, 0.95)) !important;
    border-top: 1px solid rgba(0, 255, 234, 0.2) !important;
    backdrop-filter: blur(18px);
}

body.dark-theme footer.footer-tech {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.98), rgba(5, 11, 20, 0.95)) !important;
    border-top: 1px solid rgba(0, 255, 234, 0.2) !important;
    backdrop-filter: blur(18px) !important;
}

body.light-theme footer.footer-tech {
    background: linear-gradient(180deg, rgba(6, 15, 28, 0.96), rgba(6, 15, 28, 0.92)) !important;
    border-top: 1px solid rgba(15, 109, 140, 0.25) !important;
    color: #f5f7fb !important;
    backdrop-filter: blur(18px) !important;
}

body.light-theme footer.footer-tech h5,
body.light-theme footer.footer-tech p,
body.light-theme footer.footer-tech li,
body.light-theme footer.footer-tech small,
body.light-theme footer.footer-tech span,
body.light-theme footer.footer-tech a {
    color: #f5f7fb !important;
}

body.light-theme footer.footer-tech a:hover,
body.light-theme footer.footer-tech a:focus-visible {
    color: #ffb347 !important;
}

/* Sobre Cliente - botões roxos e alinhamento central garantidos */
#sobre-cliente .btn-tech-outline.btn-prioridade {
    color: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
    justify-content: center;
    text-align: center;
}

#sobre-cliente .btn-tech-outline.btn-prioridade:hover {
    background: rgba(0, 255, 234, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.45);
    color: #fff !important;
}

#sobre-cliente .tech-card,
#sobre-cliente .tech-card h4,
#sobre-cliente .tech-card p {
    text-align: center;
}

/* PARTICLES (Matches .particle) */
.gamer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* Unified background for index sections (matches gamer backdrop without typography overrides) */
.section-unified-bg {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
}

/* Consistent vertical rhythm across sections */
.section-gamer,
.section-unified-bg,
.planos-section {
    padding-top: var(--section-pad) !important;
    padding-bottom: var(--section-pad) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.section-alt-bg {
    margin: 0;
}

/* We can reuse the particle animations if we copy them or just import the hero css */

/* IMAGE HUD OVERLAY */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, 0.9) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* ANIMATIONS */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* --- MOBILE LAYOUT PASS (Unify sections and avoid overflow) --- */
@media (max-width: 991px) {
    :root {
        --section-pad: 2rem;
    }

    .section-gamer {
        padding-top: var(--section-pad);
        padding-bottom: var(--section-pad);
    }

    .section-gamer .eyebrow-tech {
        justify-content: center;
        font-size: 0.75rem;
    }

    .section-gamer .display-4 {
        font-size: clamp(1.7rem, 6.5vw, 2.4rem);
        line-height: 1.1;
        text-align: center;
    }

    .section-gamer .lead {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section-gamer .row.align-items-center {
        row-gap: 1.5rem;
    }

    .tech-card {
        padding: 1.1rem;
        border-radius: 14px;
        clip-path: none;
    }

    .tech-card:hover {
        transform: none;
    }

    .tech-icon-box {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .tech-feature-list {
        margin: 1.25rem 0 0;
        padding-left: 0;
        border-left: none;
        align-items: center;
        text-align: center;
        box-shadow: none;
    }

    .tech-feature-item {
        justify-content: center;
    }

    .btn-tech,
    .btn-tech-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .gamer-particles {
        display: none;
    }

    .section-unified-bg .display-5 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        text-align: center;
    }

    .section-unified-bg .lead {
        font-size: 0.98rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-gamer .display-4 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .section-gamer .lead {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .localizacao-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem !important;
    }

    .localizacao-contact span {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Telefonia (Mobile) */
#plano-movel .telephony-hero-media {
    height: 500px;
}

@media (max-width: 991px) {
    #plano-movel .telephony-hero-media {
        height: 320px;
    }

    #plano-movel .telephony-hero-media .p-4 {
        padding: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    #plano-movel .telephony-hero-media {
        height: 240px;
    }

    #plano-movel .row.g-3 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* DROPDOWNS (Glassmorphism - Gamer Tech - Orange Variant) */
.dropdown-menu {
    background: rgba(5, 11, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-orange);
    /* Orange Border */
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    margin-top: 15px !important;
    /* Spacing from nav */
}

.dropdown-item {
    color: #fff !important;
    font-weight: 500;
    padding: 12px 25px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(90deg, rgba(255, 77, 29, 0.15) 0%, transparent 100%);
    /* Orange Gradient */
    color: var(--neon-orange) !important;
    /* Orange Text */
    border-left-color: var(--neon-orange);
    padding-left: 30px;
    /* Subtle slide effect */
}

/* Header Action Button Adjustments */
header .btn-tech {
    padding: 10px 25px !important;
    /* Smaller than section buttons */
    font-size: 0.9rem !important;
}

header .nav-link:hover,
header .nav-link:focus,
header .nav-link.active,
header .nav-link.show {
    color: var(--neon-orange) !important;
}

/* Mobile Active State */
.nav-btn.active-btn,
.nav-btn.gamer-active {
    background-color: var(--neon-orange) !important;
    color: #fff !important;
}

/* Desktop Active State (Robust) */
header .nav-link.active,
header .nav-link.show,
header .nav-link.gamer-active {
    color: var(--neon-orange) !important;
    opacity: 1 !important;
}

/* Mobile Offcanvas Overrides */
.offcanvas {
    background-color: var(--gamer-bg) !important;
    background-image: var(--gamer-bg-gradient);
}
