/**
 * Öffentliches CSS für Symbol reCAPTCHA
 *
 * @package    Symbol_Recaptcha
 * @subpackage Symbol_Recaptcha/public/css
 */

/* CAPTCHA Container Styling */
.symbol-captcha-container {
    margin: 20px 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: auto;
    width: 400px;
    height: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: flex;
    flex-direction: column;
}

/* CAPTCHA Header */
.symbol-captcha-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.symbol-captcha-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333333;
}

.symbol-captcha-instruction {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* CAPTCHA Grid */
.symbol-captcha-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-items: center;
    flex: 1;
    overflow-y: auto;
    align-content: center;
}

.symbol-captcha-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.symbol-captcha-item:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.symbol-captcha-item.selected {
    background-color: #e6f3fb;
    border-color: #2271b1;
}

.symbol-captcha-item .dashicons {
    width: auto;
    height: auto;
    color: #555;
}

.symbol-captcha-item.selected .dashicons {
    color: #2271b1;
}

/* CAPTCHA Footer */
.symbol-captcha-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    min-height: 20px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* Status-Nachrichten */
.symbol-captcha-message {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.success-message {
    color: #46b450;
    font-weight: 500;
}

.error-message {
    color: #dc3232;
    font-weight: 500;
}

/* Verifizierter Status */
.captcha-verified .symbol-captcha-grid {
    opacity: 0.7;
    pointer-events: none;
}

.captcha-verified {
    position: relative;
}

.captcha-verified:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #46b450;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Responsives Design - only for small screens under 480px */
@media screen and (max-width: 480px) {
    .symbol-captcha-container {
        width: 100% !important;
        max-width: 100%;
    }
    
    .symbol-captcha-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .symbol-captcha-item {
        width: 50px !important;
        height: 50px !important;
    }
    
    .symbol-captcha-item .dashicons {
        font-size: 25px !important;
    }
    
    .symbol-captcha-title {
        font-size: 15px;
    }
    
    .symbol-captcha-instruction {
        font-size: 13px;
    }
}

/* Integration in Kommentare */
#commentform .symbol-captcha-container {
    margin: 15px 0;
    position: relative;
}

/* Integration in Benutzerregistrierung */
#registerform .symbol-captcha-container {
    margin: 15px 0;
    position: relative;
}

/* Klarere visuelle Unterscheidung der Elemente */
.symbol-captcha-container * {
    box-sizing: border-box;
} 