/* Smart Dork Generator Styles */

/* Container */
#dork-strategies-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

#dork-strategies-container.hidden {
    display: none;
}

/* Header */
.dork-strategies-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.dork-strategies-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.dork-strategies-header h3 i {
    color: #a855f7;
    font-size: 1.5rem;
}

.dork-strategies-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Grid */
.dork-strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Strategy Card */
.dork-strategy-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dork-strategy-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.15);
}

/* Header */
.dork-strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dork-strategy-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #e2e8f0;
}

.dork-strategy-title i {
    color: #a855f7;
    font-size: 0.9rem;
}

/* Difficulty Badge */
.dork-difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Difficulty Badge Base Styles */
.dork-difficulty-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    transition: all 0.3s ease;
}

/* Easy Badge - Green */
.dork-difficulty-easy {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
}

.dork-difficulty-easy:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* Medium Badge - Orange */
.dork-difficulty-medium {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.4);
}

.dork-difficulty-medium:hover {
    background: rgba(251, 146, 60, 0.25);
    border-color: rgba(251, 146, 60, 0.6);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.3);
}

/* Hard Badge - Red */
.dork-difficulty-hard {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.dork-difficulty-hard:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.dork-difficulty-badge.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dork-difficulty-badge.orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dork-difficulty-badge.red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Description */
.dork-strategy-description {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Query Box */
.dork-query-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.dork-query {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #a5b4fc;
    word-break: break-all;
    display: block;
}

/* Actions */
.dork-strategy-actions {
    display: flex;
    gap: 0.5rem;
}

.dork-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dork-btn i {
    font-size: 0.75rem;
}

.dork-btn-primary {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.dork-btn-primary:hover {
    background: linear-gradient(45deg, #9333ea, #db2777);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.dork-btn-secondary {
    background: rgba(75, 85, 99, 0.3);
    color: #e2e8f0;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.dork-btn-secondary:hover {
    background: rgba(75, 85, 99, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
    color: #a855f7;
}

/* Toast Notification */
.dork-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.dork-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.dork-toast-success {
    border-left: 4px solid #22c55e;
}

.dork-toast-success i {
    color: #22c55e;
    font-size: 1.25rem;
}

.dork-toast-error {
    border-left: 4px solid #ef4444;
}

.dork-toast-error i {
    color: #ef4444;
    font-size: 1.25rem;
}

.dork-toast span {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dork-strategies-grid {
        grid-template-columns: 1fr;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .dork-strategies-header h3 {
        font-size: 1.5rem;
        align-items: flex-start;
        line-height: 1.25;
        gap: 0.35rem;
    }

    .dork-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Header badges container (top right) */
.dork-header-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Engine Badge */
.dork-engine-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: help;
    min-width: 2.2rem;
}

.dork-engine-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.dork-engine-badge i {
    font-size: 0.9rem;
}

/* Emoji icons need slightly larger size */
.dork-engine-badge {
    font-size: 1rem;
    line-height: 1;
}

/* Specific engine colors */
.dork-engine-badge:has(.fa-google) {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.3);
    color: #4285f4;
}

.dork-engine-badge:has(.fa-google):hover {
    background: rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.3);
}

.dork-engine-badge:has(.fa-microsoft) {
    background: rgba(0, 131, 115, 0.15);
    border-color: rgba(0, 131, 115, 0.3);
    color: #00a4a6;
}

.dork-engine-badge:has(.fa-microsoft):hover {
    background: rgba(0, 131, 115, 0.25);
    border-color: rgba(0, 131, 115, 0.5);
    box-shadow: 0 0 12px rgba(0, 131, 115, 0.3);
}

.dork-engine-badge:has(.fa-shield-alt) {
    background: rgba(251, 80, 43, 0.15);
    border-color: rgba(251, 80, 43, 0.3);
    color: #fb542b;
}

.dork-engine-badge:has(.fa-shield-alt):hover {
    background: rgba(251, 80, 43, 0.25);
    border-color: rgba(251, 80, 43, 0.5);
    box-shadow: 0 0 12px rgba(251, 80, 43, 0.3);
}

.dork-engine-badge:has(.fa-tree) {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.dork-engine-badge:has(.fa-tree):hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* Show Details Button (Bottom) */
.dork-details-toggle-bottom {
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.dork-details-toggle-bottom:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    transform: translateY(-1px);
}

.dork-details-toggle-bottom i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.dork-details-toggle-bottom[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dork-details-toggle {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.dork-details-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    transform: translateY(-1px);
}

.dork-details-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

/* Collapsible Details Section */
.dork-details-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.dork-details-section.expanded {
    max-height: 600px;
    opacity: 1;
    margin-top: 1rem;
}

.dork-details-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    margin: 1rem 0;
}

.dork-details-content {
    padding: 0.5rem 0;
}

.dork-details-heading {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dork-details-heading:first-child {
    margin-top: 0;
}

.dork-details-heading i {
    font-size: 0.9rem;
    color: #c4b5fd;
}

.dork-explanation-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.dork-explanation-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.dork-explanation-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #a78bfa;
    font-weight: bold;
    font-size: 1.2rem;
}

.dork-explanation-list li strong {
    color: #e0e7ff;
    font-weight: 600;
}

.dork-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.dork-learn-more:hover {
    color: #c4b5fd;
    gap: 0.75rem;
}

.dork-learn-more i:last-child {
    transition: transform 0.3s ease;
}

.dork-learn-more:hover i:last-child {
    transform: translateX(3px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .dork-header-right {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .dork-details-toggle {
        width: 100%;
        justify-content: center;
    }
}
