/* AI-Stopper Challenge Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ais-challenge-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ais-container {
    width: 100%;
    max-width: 500px;
}

.ais-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.ais-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.ais-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.ais-header p {
    font-size: 14px;
    opacity: 0.9;
}

.ais-progress {
    background: #f5f5f5;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.ais-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
}

.ais-progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ais-challenge-container {
    padding: 40px 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ais-loading {
    text-align: center;
}

.ais-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ais-loading p {
    color: #666;
    font-size: 14px;
}

/* Status Messages */
.ais-status {
    padding: 15px 30px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ais-status-info {
    background: #e3f2fd;
    color: #1976d2;
}

.ais-status-success {
    background: #e8f5e9;
    color: #388e3c;
}

.ais-status-error {
    background: #ffebee;
    color: #c62828;
}

.ais-status-warning {
    background: #fff3e0;
    color: #f57c00;
}

/* Footer */
.ais-footer {
    background: #f5f5f5;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.ais-footer p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.ais-site-name {
    font-weight: 600;
    color: #333;
}

/* Challenge Specific Styles */

/* Proof of Work */
.ais-challenge-pow {
    width: 100%;
    text-align: center;
}

.ais-challenge-pow h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

.ais-challenge-pow p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.ais-pow-progress {
    background: #f0f0f0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ais-pow-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.ais-pow-status {
    font-size: 12px;
    color: #888;
}

/* Proof of Attention */
.ais-challenge-attention {
    text-align: center;
}

.ais-challenge-attention h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

.ais-challenge-attention p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.ais-attention-timer {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto;
}

.ais-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
}

.ais-attention-warning {
    color: #f44336;
    font-weight: 600;
    min-height: 20px;
    margin-top: 20px;
}

/* Proof of Device */
.ais-challenge-device {
    text-align: center;
}

.ais-challenge-device h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

.ais-challenge-device p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.ais-device-checks {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.ais-check-item {
    padding: 12px 15px;
    background: #f5f5f5;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.ais-check-done {
    background: #e8f5e9;
    color: #388e3c;
}

.ais-check-icon {
    display: inline-block;
    width: 20px;
    margin-right: 10px;
}

/* Proof of Interaction */
.ais-challenge-interaction {
    text-align: center;
}

.ais-challenge-interaction h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

.ais-challenge-interaction p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.ais-challenge-interaction strong {
    color: #333;
    font-weight: 600;
}

.ais-shapes-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.ais-shape {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.ais-shape:hover {
    transform: scale(1.1);
    opacity: 1;
}

.ais-shape svg {
    width: 100%;
    height: 100%;
}

.ais-shape-correct {
    animation: correct 0.5s ease;
}

@keyframes correct {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.ais-shape-wrong {
    animation: wrong 0.5s ease;
}

@keyframes wrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.ais-interaction-hint {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}

/* Completion */
.ais-complete {
    text-align: center;
    padding: 20px;
}

.ais-success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ais-complete h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 24px;
}

.ais-complete p {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .ais-header h1 {
        font-size: 24px;
    }
    
    .ais-challenge-container {
        padding: 30px 20px;
    }
    
    .ais-shapes-container {
        gap: 20px;
    }
    
    .ais-shape {
        width: 70px;
        height: 70px;
    }
}