/* ==========================================
   VELOO TELECOM - ROTEAMENTO & BGP PORTAL
   Estilos específicos de /roteamento/
   ========================================== */

/* Hero Roteamento */
.bgp-hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: var(--text-white);
    overflow: hidden;
    text-align: center;
}

.bgp-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.bgp-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.bgp-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.bgp-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bgp-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Info Box / Instruções Liberação */
.prefix-policy-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: left;
    margin-top: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.prefix-policy-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prefix-policy-box p {
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.email-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: var(--transition-normal);
}

.email-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* Links de Auditoria */
.audit-links-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.audit-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color, #e5e7eb);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.audit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-highlight);
}

.audit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.audit-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.audit-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-highlight);
    font-weight: 600;
    margin-top: 1.5rem;
}

.audit-link-btn:hover {
    color: var(--primary-blue);
    gap: 0.75rem;
}

/* BGP Communities */
.bgp-communities-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.communities-group {
    margin-bottom: 4rem;
}

.communities-group h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.communities-group .group-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
}

.community-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    text-align: left;
}

.community-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1rem;
}

.community-table tr:last-child td {
    border-bottom: none;
}

.community-table tr:hover td {
    background: #f8fafc;
}

.comm-code {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.comm-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.comm-badge-info {
    background: #e0f2fe; color: #0284c7;
}

.comm-badge-warn {
    background: #fef9c3; color: #ca8a04;
}

.comm-badge-danger {
    background: #fee2e2; color: #dc2626;
}

.comm-badge-success {
    background: #dcfce7; color: #16a34a;
}

/* Peering Policy & AUP */
.policy-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

.policy-box {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.policy-box h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-item p {
    color: #64748b;
    line-height: 1.6;
}

.security-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.sec-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    color: #f8fafc;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
}

.sec-badge.rpki {
    background: #047857;
}

.sec-badge.manrs {
    background: #2563eb;
}

/* Looking Glass Terminal */
/* Looking Glass Enterprise Professional Section */
.looking-glass-section {
    padding: 7rem 0;
    background: #090d16;
    color: var(--text-white);
    position: relative;
    border-top: 1px solid #1e293b;
}

.lg-premium-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Professional Enterprise Form Card */
.lg-form-container {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 3.5rem;
    transition: border-color 0.2s ease;
}

.lg-form-container:hover {
    border-color: #374151;
}

.lg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.lg-form-group {
    text-align: left;
}

.lg-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lg-form-label i {
    color: #6b7280;
    font-size: 0.95rem;
}

.lg-select, .lg-input {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    color: #f9fafb;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.lg-select:hover, .lg-input:hover {
    border-color: #4b5563;
    background: #273242;
}

.lg-select:focus, .lg-input:focus {
    border-color: #3b82f6;
    background: #1f2937;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.lg-input {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #60a5fa;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.lg-btn-execute {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    height: 52px;
}

.lg-btn-execute:hover {
    background: #1d4ed8;
}

.lg-btn-execute:active {
    transform: scale(0.98);
}

/* Professional Terminal Container */
.terminal-container {
    max-width: 1350px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #1e293b;
    overflow: hidden;
}

.terminal-header {
    background: #1e293b;
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.status-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-body {
    background: #090d16;
    padding: 2.5rem 3rem;
    min-height: 450px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
}

.terminal-output {
    display: none;
    white-space: pre;
}

.terminal-output.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

.term-prompt { color: #10b981; font-weight: 700; }
.term-command { color: #f8fafc; font-weight: 700; }
.term-comment { color: #64748b; }
.term-highlight { color: #38bdf8; }

/* AS Path Flow Tree Canvas */
.as-graph-canvas {
    position: relative;
    background: #0b0f19;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 3rem 2rem 3rem;
    min-height: 380px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.as-branches-container {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4.5rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    width: max-content;
    padding: 0 2rem;
}

.as-branch-col {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
    align-items: center;
    min-width: 200px;
}

.as-tree-node {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.as-tree-node:hover {
    border-color: #3b82f6 !important;
    animation: nodeHoverPulseNormal 1.2s ease-in-out infinite alternate;
}

.as-tree-node.best-route-node:hover,
.as-tree-node.root-node:hover {
    border-color: #38bdf8 !important;
    animation: nodeHoverPulse 1.2s ease-in-out infinite alternate;
}

@keyframes nodeHoverPulseNormal {
    0% {
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15), 0 0 8px rgba(59, 130, 246, 0.08) !important;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.18) !important;
        transform: translateY(-7px) scale(1.04);
        filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
    }
}

@keyframes nodeHoverPulse {
    0% {
        box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2), 0 0 10px rgba(56, 189, 248, 0.1) !important;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        box-shadow: 0 12px 35px rgba(56, 189, 248, 0.45), 0 0 25px rgba(56, 189, 248, 0.25) !important;
        transform: translateY(-7px) scale(1.04);
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
    }
}

.as-tree-node.root-node {
    background: #0f172a;
    border: 2px solid #2563eb;
    width: 250px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 8px 30px rgba(37,99,235,0.2);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   CARRIER HEADER & RESPONSIVE NAV
   ========================================== */
.bgp-carrier-header {
    background: rgba(11, 15, 25, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #1f2937 !important;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-separator {
    color: #475569;
    font-family: monospace;
    font-size: 1.2rem;
}

.logo-asn {
    color: #60a5fa;
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.bgp-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.bgp-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0; padding: 0;
}

.bgp-nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.bgp-nav-link:hover, .bgp-nav-link.active {
    color: #60a5fa;
}

.noc-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.noc-btn:hover {
    background: #1d4ed8;
}

.mobile-only-noc {
    display: none;
}

.bgp-nav-toggle {
    display: none;
    font-size: 1.75rem;
    color: #f8fafc;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.bgp-nav-toggle:hover {
    color: #60a5fa;
}

/* ==========================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================== */
@media (max-width: 992px) {
    .bgp-nav-toggle {
        display: block;
    }

    .desktop-noc {
        display: none;
    }

    .mobile-only-noc {
        display: block;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-only-noc .noc-btn {
        width: 100%;
        padding: 0.85rem;
        font-size: 1.05rem;
    }

    .bgp-nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 2.5rem 3rem;
        gap: 1.5rem;
        border-bottom: 1px solid #1f2937;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
        z-index: 9998;
    }

    .bgp-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .bgp-nav-link {
        font-size: 1.15rem;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 0.75rem;
    }

    /* Hero Responsive */
    .bgp-hero {
        padding: 8rem 0 4rem;
    }

    .bgp-hero .hero-title {
        font-size: 2.25rem;
    }

    .bgp-hero .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }

    .prefix-policy-box {
        padding: 1.75rem;
        margin-top: 2rem;
    }

    .prefix-policy-box h3 {
        font-size: 1.25rem;
    }

    .email-cta {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Sections Spacings */
    .audit-links-section, .bgp-communities-section, .policy-section, .looking-glass-section {
        padding: 4rem 0;
    }

    /* Looking Glass Form & Terminal Responsive */
    .lg-form-container {
        padding: 1.75rem 1.5rem;
    }

    .lg-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lg-btn-execute {
        width: 100%;
        margin-top: 0.5rem;
    }

    .terminal-body {
        padding: 1.5rem 1.25rem;
        min-height: 320px;
        font-size: 0.85rem;
    }

    .as-tree-node {
        width: 170px;
        padding: 0.75rem 1rem;
    }
    
    .as-tree-node.root-node {
        width: 200px;
        padding: 1rem 1.25rem;
    }
    
    .as-branches-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .bgp-hero .hero-title {
        font-size: 1.85rem;
    }
    
    .logo-asn {
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 28px;
    }
}

/* ==========================================
   BGP GRAPH BEST ROUTE PULSE & GLOW
   ========================================== */
.best-route-path {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.7));
    stroke-linecap: round;
}

.best-route-pulse {
    stroke: #38bdf8; /* Ciano Brilhante para fluxo de dados */
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-dasharray: 16 84; /* Pulso de 16px com espaçamento de 84px */
    animation: bgpPulseFlow 2s linear infinite;
    opacity: 0.95;
    filter: drop-shadow(0 0 5px #38bdf8);
}

@keyframes bgpPulseFlow {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.best-route-circle {
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
    animation: nodePulse 2s ease-in-out infinite alternate;
}

@keyframes nodePulse {
    0% {
        stroke-width: 2px;
        filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.6));
    }
    100% {
        stroke-width: 3.5px;
        stroke: #38bdf8;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.9));
    }
}

.best-route-node {
    animation: nodePulseThrough 2s linear infinite;
}

@keyframes nodePulseThrough {
    0%, 100% {
        border-color: #2563eb;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transform: translateY(0);
    }
    15% {
        border-color: #38bdf8;
        box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35), 0 0 15px rgba(56, 189, 248, 0.2);
        transform: translateY(-2px);
    }
    30% {
        border-color: #2563eb;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transform: translateY(0);
    }
}


