/* Container & Title */
.lucid-techniques {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1rem 1.5rem;
    background: #1e1e1e;
    /* match gold-spark-btn background */
    border-radius: 12px;
    box-shadow:
        inset 0 0 10px #06060f,
        0 0 20px #d4af37bb;
    /* subtle golden glow around container */
    font-family: 'Inter', sans-serif;
    color: #d4af37;
    /* gold text */
    position: relative;
    overflow: hidden;
}

/* Gold sparkle shimmer */
.lucid-techniques::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 100%);
    transform: rotate(25deg);
    animation: sparkle 2.5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Title - non-glowing white */
.lucid-techniques h2 {
    text-align: center;
    font-weight: 700;
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
    /* white */
    text-shadow: none;
    /* remove glow */
    position: relative;
    z-index: 1;
}

.lucid-techniques .description {
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    color: #f5e3a1cc;
    text-shadow: none;
    /* remove glow */
    position: relative;
    z-index: 1;
}


/* Tabs container */
.technique-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Individual tab button */
.technique-tabs .tab {
    background: #1e1e1e;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    color: #d4af37;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: box-shadow 0.3s ease, color 0.3s ease;
    box-shadow:
        0 0 10px #d4af37aa,
        0 0 20px #d4af37bb;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.technique-tabs .tab::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 100%);
    transform: rotate(25deg);
    animation: sparkle 2.5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.technique-tabs .tab:hover {
    box-shadow:
        0 0 20px #ffde59,
        0 0 30px #ffde59;
    color: #fff7c0;
}

/* Active tab styling */
.technique-tabs .tab.active {
    background: #121212;
    color: #fff7c0;
    font-size: 1.15rem;
    box-shadow:
        0 0 30px #ffd93b,
        0 0 40px #ffd93bcc;
    border-color: transparent;
}

/* Tab panels */
.tab-panels {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.tab-panel {
    display: none;
    background: #121212;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow:
        inset 0 0 15px #0a0a0a,
        0 0 20px #d4af3755;
    color: #f7e7b7;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.tab-panel h3 {
    margin-top: 0;
    color: #ffd93b;
    text-shadow: none;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Remove shimmer on container */
.lucid-techniques::before {
    content: none !important;
    animation: none !important;
}

/* Remove shimmer on container */
.no-background-shimmer::before {
    content: none !important;
    animation: none !important;
}

/* Remove shimmer on tab buttons */
.technique-tabs .tab::before {
    content: none !important;
    animation: none !important;
}

/* Spark shimmer effect on tab panel */
.tab-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 100%);
    transform: rotate(25deg);
    animation: sparkle 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Sparkle animation */
@keyframes sparkle {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}