/* Retro-Futuristic Cyber-Yellow CSS for free-image-gen.com */

:root {
    --color-bg-base: #05070b;
    --color-bg-surface: rgba(11, 15, 26, 0.75);
    --color-border: rgba(255, 230, 0, 0.15);
    --color-yellow-glow: rgba(255, 230, 0, 0.35);
    --color-orange-glow: rgba(255, 150, 0, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 230, 0, 0.25);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 230, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

/* Technical Dotted Background */
.tech-dots {
    background-image: radial-gradient(rgba(255, 230, 0, 0.045) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Glassmorphism Panels with Cyber Borders */
.glass-panel {
    background: var(--color-bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
}

/* Input Fields */
.input-field {
    background: rgba(8, 10, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus {
    border-color: #ffe600;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.2);
    background: rgba(8, 10, 15, 0.9);
}

/* Typography glowing effects */
.glow-text-yellow, .glow-text-mint {
    text-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
}

.glow-border-hover:hover {
    border-color: rgba(255, 230, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.15);
}

/* Navigation link highlights */
.nav-link {
    position: relative;
    color: #64748b;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #ffe600, #ff9500);
    border-radius: 9999px;
    box-shadow: 0 0 8px #ffe600;
}

/* Cyber gradient buttons */
.gradient-btn {
    background: linear-gradient(135deg, #ffe600 0%, #ff9500 50%, #ffe600 100%);
    background-size: 200% 200%;
    color: #05070b;
    font-weight: 700;
    animation: gradientShift 5s ease infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.25);
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 230, 0, 0.45);
    filter: brightness(1.08);
}

.gradient-btn:active {
    transform: translateY(0);
}

/* Drag Zone States */
.drag-zone {
    border: 2px dashed rgba(255, 230, 0, 0.25);
    background: rgba(11, 15, 26, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drag-zone:hover, .drag-zone.drag-active {
    border-color: #ffe600;
    background: rgba(11, 15, 26, 0.85);
    box-shadow: 0 0 25px rgba(255, 230, 0, 0.15);
}

/* Aspect buttons */
.aspect-btn {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 10, 15, 0.7);
    color: #64748b;
    transition: all 0.3s ease;
}

.aspect-btn:hover {
    border-color: rgba(255, 230, 0, 0.3);
    color: #ffffff;
    background: rgba(8, 10, 15, 0.9);
}

.aspect-btn-active {
    border-color: #ffe600;
    background: rgba(255, 230, 0, 0.08);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.15);
}

/* Animation Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Modal Popup Animations */
@keyframes modalBgFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal-bg {
    animation: modalBgFade 0.25s ease-out forwards;
}

.animate-modal-content {
    animation: modalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Radial Glow Backgrounds */
.glow-bg-yellow, .glow-bg-mint {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 230, 0, 0.09) 0%, rgba(255, 230, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-bg-orange, .glow-bg-cyan {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 150, 0, 0.07) 0%, rgba(255, 150, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Bulk list preview details */
.bulk-item-card {
    background: rgba(8, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.bulk-item-card:hover {
    border-color: rgba(255, 230, 0, 0.25);
    background: rgba(8, 10, 15, 0.85);
}

/* Ensure bookmark modal renders on top of all elements */
#bookmark-modal {
    z-index: 9999 !important;
}

/* FAQ Accordion Details Styles & Transitions */
details summary::-webkit-details-marker {
    display: none; /* Hide default safari triangle */
}

details[open] summary ~ * {
    animation: detailsSweep .35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes detailsSweep {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
