/* ============================================
   FUTURISTIC THEME - BACKGROUNDS
   Circuit board, hexagon grid, decorations
   ============================================ */

/* Body Global Styles */
body[data-theme="futuristic"] {
    background: var(--futuristic-bg-primary);
    color: var(--futuristic-text-primary);
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* ============================================
   CIRCUIT BOARD BACKGROUND
   ============================================ */
.circuit-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    background-image:
        /* Horizontal lines */
        linear-gradient(90deg, var(--futuristic-cyan) 1px, transparent 1px),
        linear-gradient(0deg, var(--futuristic-cyan) 1px, transparent 1px),
        /* Diagonal circuit lines */
        linear-gradient(45deg, transparent 48%, var(--futuristic-blue) 49%, var(--futuristic-blue) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--futuristic-blue) 49%, var(--futuristic-blue) 51%, transparent 52%);
    background-size:
        100px 100px,
        100px 100px,
        50px 50px,
        50px 50px;
    background-position:
        0 0,
        0 0,
        0 0,
        25px 25px;
    animation: circuitPulse 8s ease-in-out infinite;
}

/* ============================================
   HEXAGON GRID OVERLAY
   ============================================ */
.hexagon-grid {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, var(--futuristic-cyan) 0px, transparent 2px, transparent 60px),
        repeating-linear-gradient(60deg, var(--futuristic-cyan) 0px, transparent 2px, transparent 60px),
        repeating-linear-gradient(120deg, var(--futuristic-cyan) 0px, transparent 2px, transparent 60px);
    animation: hexagonRotate 60s linear infinite;
}

/* Decorative Hexagons */
.hexagon-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--futuristic-cyan), var(--futuristic-blue));
    opacity: 0.1;
    animation: hexagonFloat 6s ease-in-out infinite;
}

.hexagon-decoration:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hexagon-decoration:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.hexagon-decoration:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hexagon-grid {
        opacity: 0.03;
    }

    .circuit-background {
        opacity: 0.08;
    }
}