/* WEYWOT SEO ENGINE V3 */
.weywot-seo-engine {
    margin: 60px 0;
    width: 100%;
}

/* KONTROLKI (UI Switcher) */
.wseo-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: 50px;
    border: 1px solid #1a1a1a;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}
.wseo-controls-label { color: #555; font-size: 0.8rem; font-weight: 900; letter-spacing: 2px; margin-right: 10px; }
.wseo-btn-mode {
    background: transparent;
    color: #888;
    border: 1px solid transparent;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}
.wseo-btn-mode:hover { color: #fff; }
.wseo-btn-mode.active { background: #111; color: var(--accent); border-color: #333; box-shadow: 0 0 15px rgba(0,255,65,0.1); }

/* BAZOWE ELEMENTY */
.wseo-stage { position: relative; }
.wseo-step { transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); animation: fadeUp 0.6s ease-out forwards; animation-delay: var(--anim-delay); opacity: 0; transform: translateY(20px); }
.wseo-icon { width: 45px; height: 45px; margin-bottom: 25px; transition: 0.5s; }
.wseo-icon svg { width: 100%; height: 100%; fill: currentColor; }
.wseo-title { font-size: 1.15rem; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.wseo-desc { font-size: 0.95rem; line-height: 1.7; margin: 0; }
.wseo-prompt { display: none; } /* Prefix terminala domyślnie ukryty */
.wseo-track { display: none; } /* Światłowód domyślnie ukryty */

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   TRYB 1: NEON PIPELINE (Laser) - ZKALIBROWANY
========================================= */
.mode-neon .wseo-stage {
    position: relative;
    padding-top: 25px; /* Oddech na górze dla światłowodu */
}

.mode-neon .wseo-track {
    display: block; 
    position: absolute; 
    top: 22px; /* IDEALNE WYŚRODKOWANIE LASERA NA OSI KULEK */
    left: 0; 
    width: 100%; 
    height: 4px;
    background: #111; 
    border-radius: 2px; 
    overflow: hidden;
    z-index: 1; /* Laser w tle */
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.mode-neon .wseo-laser {
    position: absolute; top: 0; left: -300px; width: 300px; height: 100%;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent) 50%, transparent) 40%, #fff 50%, color-mix(in srgb, var(--accent) 50%, transparent) 60%, transparent 100%);
    box-shadow: 0 0 20px 2px var(--accent);
    animation: fireLaser 4s infinite linear;
}
@keyframes fireLaser { 0% { left: -300px; } 100% { left: 100%; } }

.mode-neon .wseo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 40px; 
    position: relative; 
    z-index: 5; 
    margin-top: 0; /* Resetujemy margines, by laser i kulki się zgrały */
}

.mode-neon .wseo-step { 
    background: linear-gradient(145deg, #0d0d0d, #050505); 
    border: 1px solid rgba(255,255,255,0.03); 
    border-top: 2px solid #222; 
    padding: 40px 30px 30px; 
    border-radius: 0 0 16px 16px; 
    opacity: 0.85; 
}

.mode-neon .wseo-node { 
    position: absolute; 
    top: -10px; /* KULKA IDEALNIE NA KRAWĘDZI KARTY I LASERA */
    left: 40px; 
    width: 16px; 
    height: 16px; 
    background: #111; 
    border: 2px solid #333; 
    border-radius: 50%; 
    transition: 0.5s; 
    z-index: 3; /* Kulka wystaje nad laserem */
    box-shadow: 0 0 0 4px #000; 
}

.mode-neon .wseo-icon { color: var(--accent); filter: drop-shadow(0 0 10px rgba(0,255,65,0.2)); }
.mode-neon .wseo-num { position: absolute; top: 25px; right: 25px; font-size: 4rem; font-weight: 900; color: rgba(255,255,255,0.02); line-height: 0.8; transition: 0.5s; }
.mode-neon .wseo-title { color: #fff; }
.mode-neon .wseo-desc { color: #999; }

/* Interakcje NEON */
.mode-neon .wseo-step:hover { transform: translateY(-12px); opacity: 1; border-top-color: var(--accent); box-shadow: 0 30px 50px rgba(0,0,0,0.9), inset 0 2px 20px rgba(0, 255, 65, 0.05); }
.mode-neon .wseo-step:hover .wseo-node { background: #fff; border-color: var(--accent); box-shadow: 0 0 20px var(--accent), 0 0 0 4px #000; }
.mode-neon .wseo-step:hover .wseo-icon { transform: scale(1.15) rotate(8deg); filter: drop-shadow(0 0 15px rgba(0,255,65,0.6)); }
.mode-neon .wseo-step:hover .wseo-num { color: rgba(0,255,65,0.05); transform: scale(1.1) translate(-5px, 5px); }
.mode-neon .wseo-step:hover .wseo-desc { color: #ccc; }

/* =========================================
   TRYB 2: BENTO LOGIC (Asymetryczna siatka)
========================================= */
.mode-bento .wseo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode-bento .wseo-node { display: none; } /* Brak węzłów */
.mode-bento .wseo-step { background: #111; border: 1px solid #222; border-radius: 16px; padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.mode-bento .wseo-num { font-size: 1.5rem; color: #555; margin-bottom: 10px; }
.mode-bento .wseo-icon { color: #fff; }
.mode-bento .wseo-title { color: var(--accent); }
.mode-bento .wseo-desc { color: #aaa; }

.mode-bento .wseo-step:nth-child(1) { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #1a1a1a, #0a0a0a); } 
.mode-bento .wseo-step:nth-child(2) { grid-column: span 2; } 
.mode-bento .wseo-step:nth-child(3), .mode-bento .wseo-step:nth-child(4) { grid-column: span 1; }

.mode-bento .wseo-step:hover { background: #151515; border-color: var(--accent); transform: scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.mode-bento .wseo-step:hover .wseo-icon { color: var(--accent); transform: scale(1.1); }

/* =========================================
   TRYB 3: HACKER TERMINAL (Surowa konsola)
========================================= */
.mode-terminal .wseo-grid { display: flex; flex-direction: column; gap: 2px; background: #000; border: 1px solid #333; border-top: 25px solid #1a1a1a; padding: 20px; border-radius: 8px; position: relative; font-family: 'Courier New', Courier, monospace; box-shadow: 0 20px 40px rgba(0,0,0,0.9); }
.mode-terminal .wseo-grid::before { content: ''; position: absolute; top: -15px; left: 15px; width: 10px; height: 10px; border-radius: 50%; background: #ff4141; box-shadow: 18px 0 0 #ffb700, 36px 0 0 var(--accent); }
.mode-terminal .wseo-node, .mode-terminal .wseo-icon, .mode-terminal .wseo-num { display: none; } 

.mode-terminal .wseo-step { background: transparent; padding: 15px 0; border: none; border-bottom: 1px dashed #222; border-radius: 0; opacity: 1; transform: none; animation: none; }
.mode-terminal .wseo-step:last-child { border-bottom: none; }
.mode-terminal .wseo-prompt { display: inline; color: var(--accent); font-weight: normal; margin-right: 10px; }
.mode-terminal .wseo-title { color: #fff; font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 10px; display: flex; align-items: center; }
.mode-terminal .wseo-desc { color: #666; padding-left: 150px; font-size: 0.9rem; }

.mode-terminal .wseo-step:hover { background: rgba(0,255,65,0.05); padding-left: 10px; }
.mode-terminal .wseo-step:hover .wseo-title { color: var(--accent); }
.mode-terminal .wseo-step:hover .wseo-desc { color: #aaa; }

/* RWD Główne */
@media (max-width: 992px) {
    .mode-bento .wseo-grid { grid-template-columns: 1fr 1fr; }
    .mode-bento .wseo-step:nth-child(n) { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 768px) {
    .wseo-controls { flex-direction: column; width: 100%; border-radius: 12px; }
    .mode-terminal .wseo-desc { padding-left: 20px; }
    .mode-neon .wseo-track { width: 4px; height: 100%; left: 20px; top: 0; }
    .mode-neon .wseo-laser { height: 300px; width: 100%; top: -300px; left: 0; background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%); animation: fireLaserVert 5s infinite linear; }
    .mode-neon .wseo-grid { grid-template-columns: 1fr; padding-left: 50px; }
    .mode-neon .wseo-step { border-top: 1px solid rgba(255,255,255,0.03); border-left: 2px solid #222; border-radius: 0 16px 16px 0; }
    .mode-neon .wseo-node { top: 40px; left: -31px; }
}
@keyframes fireLaserVert { 0% { top: -300px; } 100% { top: 100%; } }