/* Main Container */
.kcep-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
}

/* Welcome Screen */
.kcep-welcome-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 50px 30px;
}

.kcep-icon-animation {
    font-size: 80px;
    margin: 0 auto 30px;
    position: relative;
    display: inline-block;
}

.kcep-welcome-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Question Setup */
.kcep-question-count-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.kcep-count-btn {
    background: white;
    border: 3px solid transparent;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: #667eea;
}

.kcep-count-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Theme Selector */
.kcep-theme-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.kcep-theme-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 100px;
}

.kcep-theme-btn[data-active="true"] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.kcep-theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.kcep-theme-preview.rainbow {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7);
}

/* Buttons */
.kcep-primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.kcep-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Questions Screen */
.kcep-progress-container {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
}

.kcep-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.kcep-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* Question Cards */
.kcep-question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kcep-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.kcep-option {
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.kcep-option:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.kcep-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Loading Screen */
.kcep-loading-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.kcep-spinner-circle {
    width: 100%;
    height: 100%;
    border: 8px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.kcep-spinner-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

/* Results Screen */
.kcep-celebration-animation {
    position: relative;
    height: 100px;
    margin: 30px 0;
}

.kcep-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #FF6B6B, #FFEAA7, #4ECDC4);
    border-radius: 50%;
    animation: fall 3s linear infinite;
}

/* Career Cards */
.kcep-career-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    border-top: 8px solid;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .kcep-container {
        border-radius: 10px;
        margin: 10px;
    }
    
    .kcep-welcome-title {
        font-size: 1.8em;
    }
    
    .kcep-option-grid {
        grid-template-columns: 1fr;
    }
    
    .kcep-primary-btn {
        padding: 15px 25px;
        font-size: 1em;
    }
}

/* Age-specific styles */
.kcep-age-little {
    font-size: 1.3em;
    line-height: 1.8;
}

.kcep-age-big {
    font-size: 1.1em;
    line-height: 1.6;
}


/* Kids Career Explorer Pro - Frontend Styles */

.kcep-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.kcep-screen {
    display: none;
    padding: 40px 30px;
}

.kcep-screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Welcome Screen */
.kcep-welcome-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.kcep-welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: white;
}

.kcep-welcome-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.kcep-welcome-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Child Info Form */
.kcep-child-info-form {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.kcep-form-group {
    margin-bottom: 20px;
}

.kcep-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.kcep-input, .kcep-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1em;
}

.kcep-input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Question Setup */
.kcep-question-setup {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
}

.kcep-setup-option h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 1.3em;
}

.kcep-question-count-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.kcep-count-btn {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.kcep-count-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.kcep-count-btn.active {
    background: #4CAF50;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.kcep-hint {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.9;
}

/* Buttons */
.kcep-primary-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.kcep-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.kcep-start-hint {
    font-size: 0.9em;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* Loading Screen */
.kcep-loading-screen {
    text-align: center;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.kcep-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.kcep-spinner-circle {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.kcep-spinner-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.kcep-loading-title {
    font-size: 1.8em;
    margin-bottom: 30px;
}

.kcep-loading-steps {
    max-width: 400px;
    margin: 0 auto;
}

.kcep-loading-step {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.kcep-loading-step.active {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid white;
}

.kcep-step-icon {
    font-size: 24px;
}

.kcep-step-text {
    flex: 1;
    font-size: 1.1em;
}

/* Error Screen */
.kcep-error-screen {
    text-align: center;
    background: linear-gradient(135deg, #FF6B6B 0%, #C70039 100%);
    color: white;
}

.kcep-error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.kcep-error-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.kcep-error-message {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .kcep-container {
        border-radius: 10px;
        margin: 10px;
    }
    
    .kcep-screen {
        padding: 30px 20px;
    }
    
    .kcep-welcome-title {
        font-size: 1.8em;
    }
    
    .kcep-question-count-selector {
        flex-direction: column;
    }
    
    .kcep-count-btn {
        width: 100%;
    }
    
    .kcep-primary-btn {
        padding: 14px 25px;
        font-size: 1.1em;
    }
}