/**
 * Human Rights Quiz Styles
 * Standalone CSS for the quiz plugin
 */

/* Container */
.hrquiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Utility */
.hrquiz-hidden {
    display: none !important;
}

/* Typography */
.hrquiz-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hrquiz-description {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #374151;
    margin-bottom: 1rem;
}

/* Buttons */
.hrquiz-btn {
    padding: .612rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.hrquiz-btn-primary {
    background-color: #ec4899;
    color: white;
}

.hrquiz-btn-primary:hover {
    background-color: #db2777;
}

.hrquiz-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.hrquiz-btn-secondary:hover {
    background-color: #d1d5db;
}

.hrquiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Start Screen */
.hrquiz-screen {
    max-width: 720px;
}

/* Form Elements */
.hrquiz-form-group {
    margin-bottom: 2rem;
}

.hrquiz-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.hrquiz-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hrquiz-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: none !important;
}

.hrquiz-input::placeholder {
    color: #9ca3af;
}

.hrquiz-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Intro Content */
.hrquiz-intro-content {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #374151;
    margin-bottom: 2rem;
}

.hrquiz-intro-content p {
    margin-bottom: 1rem;
}

.hrquiz-intro-content h1,
.hrquiz-intro-content h2,
.hrquiz-intro-content h3,
.hrquiz-intro-content h4,
.hrquiz-intro-content h5,
.hrquiz-intro-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #111827;
}

.hrquiz-intro-content ul,
.hrquiz-intro-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.hrquiz-intro-content li {
    margin-bottom: 0.5rem;
}

.hrquiz-intro-content a {
    color: #ec4899;
    text-decoration: underline;
}

.hrquiz-intro-content a:hover {
    color: #db2777;
}

/* Intro Logos */
.hrquiz-intro-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3rem;
}

.hrquiz-intro-logo {
    max-height: 100px;
    width: auto;
}

/* Progress Bar */
.hrquiz-progress-wrapper {
    margin-bottom: 2rem;
}

.hrquiz-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.hrquiz-progress-bar-bg {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.hrquiz-progress-bar {
    height: 100%;
    background-color: #ec4899;
    transition: width 0.3s ease;
    border-radius: 9999px;
}

/* Question Card */
.hrquiz-question-card {
    /* background-color: #f9fafb; */
    /* border: 1px solid #e5e7eb; */
    border-radius: 0.5rem;
    /* padding: 2rem; */
    margin-bottom: 2rem;
}

.hrquiz-question-text {
    font-size: 1.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #111827;
}

/* Answers Grid */
.hrquiz-answers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hrquiz-answers-grid {
        grid-template-columns: 1fr;
    }
}

.hrquiz-answer-btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border: 2px solid #d1d5db;
    background-color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.hrquiz-answer-btn:hover:not(:disabled) {
    border-color: #ec4899;
    background-color: #fce7f3;
}

.hrquiz-answer-btn.hrquiz-answer-selected {
    border-color: #ec4899;
    background-color: #fce7f3;
}

.hrquiz-answer-btn:disabled {
    cursor: not-allowed;
}

/* Answer Feedback */
.hrquiz-feedback {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(20px);
    animation: feedbackSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hrquiz-comment {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #111827;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hrquiz-recommendations {
    /* margin-top: 1rem; */
}

.hrquiz-recommendations-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #111827;
    margin-top: 0;
}

.hrquiz-recommendations-list {
    list-style-type: none;
    padding: 0;
    /* padding-left: 1.25rem; */
}

.hrquiz-recommendations-list li {
    padding: 1rem 1.25rem;
    background-color: #f2fcff;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 400;
    color: #374151;
    opacity: 0;
    transform: translateY(10px);
}

.hrquiz-recommendations-list li *:last-child {
    margin-bottom: 0;
}

.hrquiz-recommendations-list li:nth-child(1) {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hrquiz-recommendations-list li:nth-child(2) {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hrquiz-recommendations-list li:nth-child(3) {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hrquiz-recommendations-list li:nth-child(4) {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hrquiz-recommendations-list li:nth-child(5) {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* Navigation */
.hrquiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Results Screen */
.hrquiz-results-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: center;
    color: #111827;
}

.hrquiz-organization-summary {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #374151;
    margin-bottom: 3rem;
    font-weight: 500;
    text-align: center;
}

.hrquiz-results-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hrquiz-results-card {
        flex-direction: column;
    }
}

.hrquiz-final-score-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .hrquiz-final-score-wrapper {
        flex: 1;
    }
}

.hrquiz-final-score {
    font-size: 4rem;
    font-weight: bold;
    color: #ec4899;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hrquiz-final-score-label {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 500;
}

.hrquiz-category-scores {
    flex: 2;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .hrquiz-category-scores {
        flex: 1;
    }
}

.hrquiz-category-scores-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #111827;
}

.hrquiz-category-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hrquiz-category-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}

.hrquiz-category-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ec4899;
}

/* Download Section */
.hrquiz-download-section {
    margin-bottom: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid #a3a3a3;
    border-bottom: 1px solid #a3a3a3;
    text-align: center;
}

.hrquiz-download-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.75rem;
}

.hrquiz-download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hrquiz-download-buttons .hrquiz-btn {
    flex: 0 1 auto;
    min-width: 200px;
}

@media (max-width: 640px) {
    .hrquiz-download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hrquiz-download-buttons .hrquiz-btn {
        width: 100%;
    }
}

/* Restart button */
#restart-btn {
    display: block;
    margin: 0 auto;
}

/* Animations */
@keyframes feedbackSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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