/* ============================================
   BOT SQUAD - Robotic Theme Overlays
   ============================================ */

/* --- Mechanical Card Panels --- */
.card {
    border-radius: 4px !important;
    clip-path: polygon(
        12px 0%, calc(100% - 12px) 0%, 100% 12px,
        100% calc(100% - 12px), calc(100% - 12px) 100%,
        12px 100%, 0% calc(100% - 12px), 0% 12px
    ) !important;
}

/* Redefine card::before as corner rivets + top accent */
.card::before {
    content: "" !important;
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    right: auto !important;
    width: 7px !important;
    height: 7px !important;
    background: rgba(0, 229, 255, 0.4) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px var(--accent-glow) !important;
    opacity: 1 !important;
    z-index: 3 !important;
    transition: all 0.35s ease !important;
}

/* Top-right rivet */
.card .rivet-tr {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 3;
    transition: all 0.35s ease;
}

/* Bottom-left rivet */
.card .rivet-bl {
    position: absolute;
    bottom: 7px;
    left: 7px;
    width: 7px;
    height: 7px;
    background: rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 3;
    transition: all 0.35s ease;
}

/* Bottom-right rivet */
.card .rivet-br {
    position: absolute;
    bottom: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 3;
    transition: all 0.35s ease;
}

.card:hover .rivet-tr,
.card:hover .rivet-bl,
.card:hover .rivet-br,
.card:hover::before {
    background: rgba(0, 229, 255, 0.8) !important;
    box-shadow: 0 0 16px var(--accent-glow) !important;
}

/* --- Scan Line Overlay on Cards --- */
.card .scan-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 229, 255, 0.012) 3px,
        rgba(0, 229, 255, 0.012) 4px
    );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

/* --- Warning Stripe Accent --- */
.warning-stripe {
    background: repeating-linear-gradient(
        -45deg,
        var(--caution-yellow),
        var(--caution-yellow) 8px,
        #1a1a1a 8px,
        #1a1a1a 16px
    ) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3) !important;
    box-shadow: 0 0 25px rgba(255, 214, 0, 0.4) !important;
}

.warning-stripe:hover {
    box-shadow: 0 0 40px rgba(255, 214, 0, 0.6) !important;
}

/* --- HUD Corner Brackets for Sections --- */
.hud-brackets {
    position: relative;
}

.hud-brackets::before,
.hud-brackets::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1;
}

.hud-brackets::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    box-shadow: -2px -2px 10px var(--accent-glow);
}

.hud-brackets::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    box-shadow: 2px 2px 10px var(--accent-glow);
}

/* --- Rotating Gear (CSS-only) --- */
.gear-container {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.gear {
    width: 80px;
    height: 80px;
    border-radius: 20%;
    background: var(--accent-primary);
    position: relative;
    animation: gearSpin 20s linear infinite;
}

.gear::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background: var(--bg-primary);
    border-radius: 50%;
}

.gear::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 70%;
    background: var(--accent-primary);
}

.gear-arm {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15%;
    height: 70%;
    background: var(--accent-primary);
    transform-origin: center;
}

.gear-arm:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.gear-arm:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.gear-arm:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.gear-arm:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Metallic Chrome Text --- */
.chrome-text {
    background: linear-gradient(
        180deg,
        #e8e8f0 0%,
        #b0b8c8 30%,
        #fff 50%,
        #8a95a8 70%,
        #c8d0dc 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

/* --- Terminal / Data Stream Effect --- */
.terminal-text {
    font-family: var(--font-mono) !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 8px var(--accent-glow) !important;
    letter-spacing: 0.05em !important;
}

.terminal-text::after {
    content: "_";
    animation: blinkCursor 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Hero Robot Silhouette --- */
.hero-robot-accent {
    position: absolute;
    bottom: 0;
    right: 5%;
    font-size: 15rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* --- Section Header with Mech Accents --- */
.mech-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.mech-header::before,
.mech-header::after {
    content: "";
    height: 2px;
    flex: 1;
    max-width: 60px;
    background: linear-gradient(90deg, transparent, var(--accent-primary));
    box-shadow: 0 0 10px var(--accent-glow);
}

.mech-header::after {
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* --- Glowing Data Points --- */
.data-point {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.data-point::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: dataPulse 2s ease-in-out infinite;
}

@keyframes dataPulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 229, 255, 0.3); }
}

/* --- Industrial Button Variant --- */
.btn-industrial {
    background: linear-gradient(180deg, #3a3a4a, #1a1a28) !important;
    color: var(--accent-primary) !important;
    border: 2px solid #2a2a3a !important;
    border-bottom: 4px solid var(--accent-primary) !important;
    box-shadow: 0 4px 0 #006070, 0 0 15px rgba(0, 229, 255, 0.1) !important;
    text-transform: uppercase !important;
}

.btn-industrial:hover {
    border-bottom-color: #fff !important;
    box-shadow: 0 4px 0 #008899, 0 0 30px var(--accent-glow) !important;
    transform: translateY(-2px) !important;
}

.btn-industrial:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

/* --- Status Indicator Lights --- */
.status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-online {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: statusGlow 2s ease-in-out infinite;
}

.status-busy {
    background: var(--warm-orange);
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.5);
}

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 18px rgba(0, 255, 136, 0.7); }
}

/* --- Digital Readout Box --- */
.readout {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    padding: 12px 20px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-glow);
    display: inline-block;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .card {
        clip-path: polygon(
            8px 0%, calc(100% - 8px) 0%, 100% 8px,
            100% calc(100% - 8px), calc(100% - 8px) 100%,
            8px 100%, 0% calc(100% - 8px), 0% 8px
        ) !important;
    }
    .gear {
        width: 50px;
        height: 50px;
    }
}
