/**
 * 42 Istanbul Cyber Security Club — Tailwind Theme Extensions & Custom Animations
 */

/* Ambient Glow Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    z-index: 0;
}

.orb-a {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
    background: rgba(159, 239, 0, 0.14);
}

.orb-b {
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: 15%;
    background: rgba(56, 189, 248, 0.08);
}

/* Staggered Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.5s ease forwards;
}

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

/* Blinking Cursor */
.blink {
    animation: blinker 1s linear infinite;
    background-color: #9fef00;
    display: inline-block;
    width: 8px;
    height: 1.1em;
    vertical-align: middle;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Accordion Caret */
.dropdown-panel.open .dropdown-caret {
    transform: rotate(225deg);
    border-color: #9fef00;
}

/* Toast Floating Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #16202c;
    color: #e6f6ec;
    border: 1px solid rgba(159, 239, 0, 0.35);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 90;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Terminal Answers */
.faq-answer-line {
    animation: rise 0.25s ease forwards;
}

.faq-q.active {
    color: #9fef00;
}

.faq-q::before {
    content: "$ ";
    color: #9fef00;
    font-weight: bold;
}

/* Gallery Slider Scrollbar */
.gallery-slider {
    scrollbar-width: thin;
    scrollbar-color: rgba(159, 239, 0, 0.35) rgba(12, 18, 24, 0.6);
}

.gallery-slider::-webkit-scrollbar {
    height: 6px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: rgba(12, 18, 24, 0.6);
    border-radius: 9999px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: rgba(159, 239, 0, 0.35);
    border-radius: 9999px;
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(159, 239, 0, 0.65);
}

/* Cyber Grid & Radar Mesh */
.cyber-grid-mesh {
    background-image: linear-gradient(to right, rgba(159, 239, 0, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(159, 239, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cyber-dots-mesh {
    background-image: radial-gradient(rgba(159, 239, 0, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Step timeline connectors */
@media (min-width: 1024px) {
    .step-connector-line::after {
        content: "";
        position: absolute;
        top: 24px;
        left: calc(100% - 12px);
        width: 24px;
        height: 2px;
        background: linear-gradient(to right, rgba(159, 239, 0, 0.4), rgba(159, 239, 0, 0.1));
        z-index: 10;
    }
}
