/* Chuck Example Quiz Plugin Styles - Mobile First */

.chuckle-quiz-container {
    background: linear-gradient(135deg, #000000 0%, #4a0e4e 50%, #8b008b 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    max-width: 100%;
    min-height: 100vh;
    color: white;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chuckle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.chuckle-title {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chuckle-timer {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.timer-display {
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    font-weight: bold;
}

.chuckle-intro {
    text-align: center;
    padding: 30px 0;
}

.chuckle-form-section {
    max-width: 400px;
    margin: 0 auto;
}

.chuckle-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.chuckle-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.chuckle-input:focus {
    outline: none;
    border-color: #8b008b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(139, 0, 139, 0.3);
}

.chuckle-button {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.chuckle-button:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chuckle-button:active {
    transform: translateY(0);
}

/* Bottom action buttons - white with green text */
.chuckle-actions .chuckle-button {
    background: #ffffff;
    color: #28a745;
    border: 2px solid #ffffff;
}

.chuckle-actions .chuckle-button:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    color: #218838;
}

.chuckle-content {
    margin-top: 20px;
}

.chuckle-questions-container {
    position: relative;
}

.chuckle-question-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chuckle-question-item.active {
    display: block !important;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chuckle-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chuckle-back-btn,
.chuckle-forward-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.chuckle-back-btn:hover,
.chuckle-forward-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-button {
    width: 20px;
    height: 20px;
    position: relative;
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: white;
    top: 0;
    left: 9px;
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.forward-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.chuckle-question-number {
    font-family: 'Poppins-Bold', 'Poppins', sans-serif;
    color: #1497de;
    font-size: 18px;
    font-weight: bold;
    margin: 0 20px;
}

.chuckle-question-text {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
}

.chuckle-question-label {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chuckle-options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.chuckle-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.chuckle-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.chuckle-option.selected {
    background: rgba(139, 0, 139, 0.3);
    border-color: #8b008b;
    box-shadow: 0 0 20px rgba(139, 0, 139, 0.4);
}

.chuckle-option.correct {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.chuckle-option.incorrect {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

.chuckle-option-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
}

.chuckle-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chuckle-results {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid rgba(40, 167, 69, 0.3);
    backdrop-filter: blur(10px);
}

.chuckle-results h4 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-display {
    color: #28a745;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-display-result {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* Timer warning */
.chuckle-timer.warning {
    animation: pulse 1s infinite;
    color: #ff6b6b;
    border-color: #ff6b6b;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Tablet styles */
@media (min-width: 768px) {
    .chuckle-quiz-container {
        padding: 40px;
        margin: 40px auto;
        max-width: 800px;
    }
    
    .chuckle-title {
        font-size: 32px;
    }
    
    .chuckle-timer {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .chuckle-question-label {
        font-size: 24px;
    }
    
    .chuckle-option-text {
        font-size: 18px;
    }
    
    .chuckle-actions {
        gap: 20px;
    }
    
    .chuckle-button {
        padding: 18px 35px;
        font-size: 18px;
        min-width: 180px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .chuckle-quiz-container {
        padding: 50px;
        max-width: 900px;
    }
    
    .chuckle-title {
        font-size: 36px;
    }
    
    .chuckle-question-label {
        font-size: 26px;
    }
    
    .chuckle-option-text {
        font-size: 20px;
    }
    
    .chuckle-options-container {
        gap: 20px;
    }
    
    .chuckle-option {
        padding: 25px;
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    .chuckle-quiz-container {
        max-width: 1000px;
    }
    
    .chuckle-questions-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chuckle-quiz-container {
        border-radius: 16px;
    }
    
    .chuckle-option {
        border-radius: 16px;
    }
    
    .chuckle-button {
        border-radius: 30px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .chuckle-question-item.active {
        animation: none;
    }
    
    .chuckle-button:hover,
    .chuckle-option:hover {
        transform: none;
    }
    
    .chuckle-timer.warning {
        animation: none;
    }
}

/* Focus styles for accessibility */
.chuckle-button:focus,
.chuckle-option:focus,
.chuckle-input:focus {
    outline: 3px solid #8b008b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .chuckle-quiz-container {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .chuckle-button {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

