/* Nexus Frontend - Sci-Fi UI for Frontend Links */
/* Complete isolation for frontend elements */

.swx-friendly-links-container {
    position: relative;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.swx-friendly-links-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swx-friendly-links-container:hover::before {
    opacity: 1;
}

.swx-friendly-links-container h3 {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px 0 0;
    animation: nexus-title-glow 2s ease-in-out infinite alternate;
}

@keyframes nexus-title-glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 1), 0 0 30px rgba(0, 255, 136, 0.5);
    }
}

/* Nexus Apply Button */
#swx-apply-link-btn-footer {
    background: linear-gradient(45deg, #00ff88, #00cc66) !important;
    color: #000 !important;
    border: 2px solid #00ff88 !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
}

#swx-apply-link-btn-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#swx-apply-link-btn-footer:hover::before {
    left: 100%;
}

#swx-apply-link-btn-footer:hover {
    background: linear-gradient(45deg, #00cc66, #00ff88) !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8) !important;
    transform: translateY(-2px) !important;
    color: #000 !important;
}

#swx-apply-link-btn-footer:active {
    transform: translateY(0) !important;
}

/* Nexus Links Styling */
.swx-friendly-links-container ul {
    position: relative;
    z-index: 1;
}

.swx-friendly-links-container ul li {
    position: relative;
    margin: 0 8px !important;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.swx-friendly-links-container ul li:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.swx-friendly-links-container ul li a {
    color: #88ccff !important;
    text-decoration: none !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.swx-friendly-links-container ul li a:hover {
    color: #00ff88 !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.8) !important;
}

.swx-friendly-links-container ul li a img {
    border-radius: 3px !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swx-friendly-links-container ul li a:hover img {
    border-color: rgba(0, 255, 136, 0.8) !important;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
}

/* Nexus Modal Styling for Frontend */
.swx-modal-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
}

.swx-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    border: 2px solid rgba(0, 255, 136, 0.5) !important;
    border-radius: 15px !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5) !important;
    color: #88ccff !important;
    font-family: 'Courier New', monospace !important;
}

.swx-modal-close {
    color: #ff4444 !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swx-modal-close:hover {
    background: rgba(255, 68, 68, 0.2) !important;
    color: #ff6666 !important;
}

/* Nexus Form Styling */
#swx-modal-body h3 {
    color: #00ff88 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 25px !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8) !important;
}

#swx-modal-body p {
    margin-bottom: 15px !important;
}

#swx-modal-body label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #88ccff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#swx-modal-body input[type="text"],
#swx-modal-body input[type="url"],
#swx-modal-body input[type="email"],
#swx-modal-body textarea {
    width: 100% !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 5px !important;
    color: #00ff88 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

#swx-modal-body input[type="text"]:focus,
#swx-modal-body input[type="url"]:focus,
#swx-modal-body input[type="email"]:focus,
#swx-modal-body textarea:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

#swx-modal-body textarea {
    resize: vertical !important;
    min-height: 80px !important;
}

#swx-modal-body button[type="submit"] {
    background: linear-gradient(45deg, #00ff88, #00cc66) !important;
    color: #000 !important;
    border: 2px solid #00ff88 !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
    width: 100% !important;
    margin-top: 10px !important;
}

#swx-modal-body button[type="submit"]:hover {
    background: linear-gradient(45deg, #00cc66, #00ff88) !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8) !important;
    transform: translateY(-2px) !important;
}

#swx-modal-body button[type="submit"]:disabled {
    background: #666 !important;
    color: #999 !important;
    border-color: #666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Nexus Success/Error Messages */
.swx-modal-body .nexus-success {
    background: rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.4) !important;
    border-radius: 5px !important;
    padding: 15px !important;
    text-align: center !important;
    font-weight: bold !important;
    margin: 20px 0 !important;
}

.swx-modal-body .nexus-error {
    background: rgba(255, 68, 68, 0.2) !important;
    color: #ff4444 !important;
    border: 1px solid rgba(255, 68, 68, 0.4) !important;
    border-radius: 5px !important;
    padding: 15px !important;
    text-align: center !important;
    font-weight: bold !important;
    margin: 20px 0 !important;
}

/* Different styles for different page types */
.swx-friendly-links-container.swx-homepage {
    /* Full sci-fi effect on homepage */
    opacity: 1;
}

.swx-friendly-links-container.swx-subpage {
    /* More subtle on subpages */
    opacity: 0.9;
    transform: scale(0.95);
}

.swx-friendly-links-container.swx-subpage::before {
    opacity: 0.7;
}

.swx-friendly-links-container.swx-subpage h3 {
    font-size: 16px;
    animation: none;
}

.swx-friendly-links-container.swx-subpage #swx-apply-link-btn-footer {
    padding: 8px 20px !important;
    font-size: 11px !important;
}

.swx-friendly-links-container.swx-subpage ul li {
    transform: scale(0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .swx-friendly-links-container div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .swx-friendly-links-container h3 {
        margin: 0 0 10px 0 !important;
    }
    
    #swx-apply-link-btn-footer {
        padding: 8px 20px !important;
        font-size: 11px !important;
    }
    
    .swx-friendly-links-container ul li {
        margin: 0 5px 5px 5px !important;
    }
}

/* Glitch Effect for Special Occasions */
@keyframes nexus-glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-1px, 1px);
    }
    40% {
        transform: translate(1px, -1px);
    }
    60% {
        transform: translate(-1px, -1px);
    }
    80% {
        transform: translate(1px, 1px);
    }
}

.nexus-glitch {
    animation: nexus-glitch 0.3s ease-out;
}

/* Particle Effect (Optional Enhancement) */
.swx-friendly-links-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 136, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swx-friendly-links-container:hover::after {
    opacity: 1;
}