/* Quiz Akademia Hojności - Styles */

:root {
    --primary: #D97706;
    --primary-dark: #B45309;
    --secondary: #059669;
    --bg-light: #FFF7ED;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#quiz-akademia-container {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FEF3C7 100%);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

#quiz-akademia-container .container {
    max-width: 800px;
    margin: 0 auto;
}

#quiz-akademia-container h1, 
#quiz-akademia-container h2, 
#quiz-akademia-container h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
}

/* Progress Bar */
.progress-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-medium);
    text-align: center;
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

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

/* Welcome Screen */
.welcome-screen {
    text-align: center;
}

.welcome-screen h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.welcome-screen .subtitle {
    font-size: 24px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.welcome-screen .description {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.info-item .icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.info-item .label {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.info-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Question Styles */
.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

.question-header {
    margin-bottom: 32px;
}

.question-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.question-type {
    font-size: 14px;
    color: var(--text-light);
}

/* Scale Question */
.scale-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scale-option {
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.scale-option:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.scale-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.scale-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.scale-option.selected .scale-number {
    background: var(--primary-dark);
    color: white;
}

.scale-text {
    flex: 1;
}

/* Choice Question */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.choice-option {
    padding: 20px 24px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.choice-option:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.choice-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.choice-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.choice-option.selected .choice-letter {
    background: var(--primary-dark);
    color: white;
}

/* Buttons */
.button-container {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

#quiz-akademia-container button {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--text-medium);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Results Screen */
.results-screen {
    display: none;
    text-align: center;
}

.results-screen.active {
    display: block;
}

.score-display {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0;
    font-family: 'Crimson Pro', serif;
}

.score-label {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.result-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.result-description {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

.result-recommendation {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 32px 0;
    text-align: left;
}

.result-recommendation h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 24px;
}

.result-recommendation p {
    color: var(--text-medium);
    margin-bottom: 12px;
}

.result-recommendation a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.result-recommendation a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.category-breakdown {
    margin-top: 40px;
    text-align: left;
}

.category-breakdown h3 {
    margin-bottom: 24px;
    color: var(--text-dark);
}

.category-item {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.category-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #quiz-akademia-container {
        padding: 12px;
    }

    .card {
        padding: 24px;
    }

    .welcome-screen h1 {
        font-size: 32px;
    }

    .welcome-screen .subtitle {
        font-size: 18px;
    }

    .question-text {
        font-size: 20px;
    }

    .score-display {
        font-size: 56px;
    }

    .result-title {
        font-size: 28px;
    }

    .button-container {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}
