/* CAPTCHA CONTAINER */
.captcha-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 200px;
}

/* GOLDEN CAPTCHA STYLING */
.golden-captcha {
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: golden-pulse 2s infinite;
}

@keyframes golden-pulse {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(255,215,0,0.3);
    }
    50% {
        box-shadow: inset 0 0 40px rgba(255,215,0,0.5);
    }
}

/* CAPTCHA QUESTION */
.captcha-question {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.5;
    max-width: 90%;
}

.captcha-question.golden {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    animation: golden-text-glow 2s infinite;
}

@keyframes golden-text-glow {
    0%, 100% { text-shadow: 0 0 5px #ffd700; }
    50% { text-shadow: 0 0 15px #ffd700, 0 0 25px #ffa500; }
}

/* CAPTCHA OPTIONS */
.captcha-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.captcha-option {
    min-width: 60px;
    min-height: 60px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 10px;
    transition: all 0.2s;
    user-select: none;
}

.golden-captcha .captcha-option {
    border-color: #ffd700;
}

.captcha-option:hover {
    background: var(--primary-background);
    color: #000;
    transform: scale(1.05);
}

.golden-captcha .captcha-option:hover {
    background: #ffd700;
    box-shadow: 0 0 15px #ffd700;
}

.captcha-option.selected {
    background: var(--primary-background);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.golden-captcha .captcha-option.selected {
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
}

/* TEXT INPUT */
.captcha-input {
    background: #000;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-align: center;
    width: 200px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.golden-captcha .captcha-input {
    border-color: #ffd700;
    color: #ffd700;
}

.captcha-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary-color);
}

.golden-captcha .captcha-input:focus {
    box-shadow: 0 0 15px #ffd700;
}

/* SLIDER */
.slider-container {
    width: 250px;
    margin: 10px 0;
}

.slider {
    width: 100%;
    height: 30px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    appearance: none;
    outline: none;
    cursor: pointer;
}

.golden-captcha .slider {
    border-color: #ffd700;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 26px;
    background: var(--primary-background);
    cursor: pointer;
}

.golden-captcha .slider::-webkit-slider-thumb {
    background: #ffd700;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 26px;
    background: var(--primary-background);
    cursor: pointer;
    border: none;
}

.golden-captcha .slider::-moz-range-thumb {
    background: #ffd700;
}

.slider-value {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
}

/* IMAGE GRID */
.captcha-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 8px;
}

.captcha-image-box {
    width: 90px;
    height: 90px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.2s;
}

.golden-captcha .captcha-image-box {
    border-color: #ffd700;
}

.captcha-image-box:hover {
    background: var(--primary-background);
    color: #000;
}

.golden-captcha .captcha-image-box:hover {
    background: #ffd700;
}

.captcha-image-box.selected {
    background: var(--primary-background);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.golden-captcha .captcha-image-box.selected {
    background: #ffd700;
    box-shadow: 0 0 15px #ffd700;
}

/* DOTS CONTAINER */
.captcha-dots-container {
    position: relative;
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-color);
    background: #1a1a1a;
}

.golden-captcha .captcha-dots-container {
    border-color: #ffd700;
}

.captcha-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary-background);
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000;
    font-weight: bold;
    transition: all 0.2s;
}

.golden-captcha .captcha-dot {
    background: #ffd700;
}

.captcha-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-color);
}

.golden-captcha .captcha-dot:hover {
    box-shadow: 0 0 15px #ffd700;
}

.captcha-dot.clicked {
    background: var(--primary-color-dark);
}

.golden-captcha .captcha-dot.clicked {
    background: #ff8c00;
}

/* LINES */
.captcha-line {
    height: 4px;
    background: var(--primary-background);
    cursor: pointer;
    transition: all 0.2s;
}

.golden-captcha .captcha-line {
    background: #ffd700;
}

.captcha-line:hover {
    background: #ff0;
    height: 6px;
}

/* SUBMIT BUTTON */
.captcha-submit {
    margin-top: 15px;
    padding: 10px 30px;
    background: #000;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    transition: all 0.2s;
}

.captcha-submit.golden {
    border-color: #ffd700;
    color: #ffd700;
    animation: golden-button-pulse 2s infinite;
}

@keyframes golden-button-pulse {
    0%, 100% { box-shadow: 0 0 10px #ffd700; }
    50% { box-shadow: 0 0 25px #ffd700; }
}

.captcha-submit:hover {
    background: var(--primary-background);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.captcha-submit.golden:hover {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 30px #ffd700;
}

/* STATUS */
.captcha-status {
    padding: 10px 15px;
    text-align: center;
    font-size: 13px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--primary-color);
}

.captcha-status.success {
    color: var(--primary-color);
    animation: flash-success 0.5s;
}

.captcha-status.error {
    color: #f00;
    animation: flash-error 0.5s;
}

.captcha-status.bot-working {
    color: #ff0;
}

/* SPECIAL STYLES */
.rotate-0 { transform: rotate(0deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.rotate-270 { transform: rotate(270deg); }
.flip-h { transform: scaleX(-1); }
.flip-v { transform: scaleY(-1); }

.emoji-large {
    font-size: 40px;
}

.distorted-text {
    font-size: 28px;
    letter-spacing: 4px;
    transform: skew(-8deg);
    font-weight: bold;
    user-select: none;
}

/* ROTATING SYMBOLS */
.rotating-option {
    min-width: 80px;
    min-height: 80px;
}

.rotating-symbol {
    font-size: 40px;
    display: inline-block;
}

/* ANIMATIONS */
@keyframes flash-success {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes flash-error {
    0%, 100% { color: #f00; }
    50% { color: #f88; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .captcha-container {
        padding: 15px;
    }

    .captcha-option {
        min-width: 50px;
        min-height: 50px;
        font-size: 20px;
    }

    .captcha-image-grid {
        grid-template-columns: repeat(3, 70px);
    }

    .captcha-image-box {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .captcha-dots-container {
        width: 200px;
        height: 200px;
    }
}