/* ============================================
   PRO MODE TOGGLE & FLIP ANIMATION
   ============================================ */

/* Mode Container */
.mode-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Flip Animation */
@keyframes flipContainer {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform: rotateY(90deg);
        opacity: 0.3;
    }

    100% {
        transform: rotateY(180deg);
        opacity: 1;
    }
}

@keyframes flipContainerBack {
    0% {
        transform: rotateY(180deg);
        opacity: 1;
    }

    50% {
        transform: rotateY(90deg);
        opacity: 0.3;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.mode-container.flipping-forward {
    animation: flipContainer 0.8s ease-in-out;
}

.mode-container.flipping-backward {
    animation: flipContainerBack 0.8s ease-in-out;
}

/* Mode Content */
.mode-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mode-content.active {
    display: block;
    opacity: 1;
}

/* PRO Toggle Switch */
.pro-toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: #4b5563;
    border-radius: 14px;
    border: 2px solid #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    flex-shrink: 0;
    min-height: 28px;
    padding: 0;
    display: inline-block;
}

.pro-toggle-switch[aria-checked="true"] {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.pro-toggle-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pro-toggle-switch[aria-checked="true"] .pro-toggle-indicator {
    transform: translateX(22px);
}

/* AI Dork Generator Styles */
.ai-dork-header {
    text-align: center;
    padding: 1.25rem 0 1.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 1.25rem;
}

.ai-input-section input {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
}

.ai-input-section input:focus {
    background: rgba(31, 41, 55, 0.95);
}

.ai-controls select {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
}

.ai-results {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Generated Dork Card */
.generated-dork-card {
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.generated-dork-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.dork-query-display {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: #a78bfa;
    font-size: 0.95rem;
    word-break: break-all;
    margin: 1rem 0;
}

.dork-strategy-label {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 1rem;
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dork-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dork-action-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dork-action-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
}

.dork-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.dork-action-btn.secondary {
    background: rgba(55, 65, 81, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dork-action-btn.secondary:hover {
    background: rgba(75, 85, 99, 0.8);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ai-controls {
        grid-template-columns: 1fr;
    }

    .dork-actions {
        flex-direction: column;
    }
}
