/* Custom Styles for Restauración de Internet */

:root {
    --cyan-glow: 0 0 15px rgba(34, 211, 238, 0.4);
    --emerald-glow: 0 0 15px rgba(16, 185, 129, 0.4);
    --rose-glow: 0 0 15px rgba(244, 63, 94, 0.4);
}

body {
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.5);
    box-shadow: var(--cyan-glow);
}

/* Drag & Drop Visuals */
.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
}

.drop-zone-active {
    border-color: #22d3ee !important;
    background: rgba(34, 211, 238, 0.05) !important;
    box-shadow: var(--cyan-glow) inset;
}

.drop-zone-success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

/* Error Animation */
@keyframes error-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); filter: drop-shadow(0 0 10px #f43f5e); }
    100% { transform: scale(1); opacity: 0; }
}

.error-animation {
    animation: error-bounce 0.5s ease-in-out forwards;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Custom Utilities */
.text-glow-cyan { text-shadow: var(--cyan-glow); }
.text-glow-emerald { text-shadow: var(--emerald-glow); }

/* SVG Lines Container for Game 2 */
#connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.connection-line {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 1s ease-out forwards;
    filter: drop-shadow(0 0 5px #10b981);
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}
