/* .quiz-home-container{ */
/*     width: 80%; */
/*     margin: auto; */
/**/
/* } */
/**/
/* .quiz-home-container h1 { */
/*     font-size: 2rem; */
/*     font-weight: 700; */
/*     line-height: 1.2; */
/*     letter-spacing: -0.02em; */
/*     margin-top: calc(70px + 2.5rem); */
/*     margin-bottom: 2rem; */
/*     text-align: center; */
/*     color: var(--primary-color); */
/*     position: relative; */
/* } */
/**/
/* .quiz-home-container h1::after { */
/*     content: ""; */
/*     display: block; */
/*     width: 60px; */
/*     height: 3px; */
/*     background: linear-gradient( */
/*         90deg,  */
/*         var(--primary-color) 0%,  */
/*         var(--third-color) 100% */
/*     ); */
/*     margin: 1rem auto 0; */
/*     border-radius: 3px; */
/*     transition: width 0.3s ease; */
/* } */
/**/
/* .quiz-home-container h1:hover::after { */
/*     width: 100px; */
/* } */
/* .quiz-history{ */
/*     display: flex; */
/*     flex-direction: column; */
/*     gap: 0.5rem; */
/* } */
/**/
/* .info-value{ */
/*     color: var(--third-color); */
/* } */
/**/
/* .quiz-history h2{ */
/*     font-size: 1rem; */
/*     margin-bottom: 1rem; */
/* } */
/**/
/**/
/**/
/* .last-quiz-info{ */
/*     width: fit-content; */
/*     margin-top: 1rem; */
/*     border-radius: 5px; */
/*     display: flex; */
/*     flex-direction: column; */
/*     gap: 0.3rem; */
/* } */
/**/
/* .last-quiz-info h3{ */
/*     font-size: 1rem; */
/*     font-weight: normal; */
/*     margin-bottom: 0.5rem; */
/*     text-decoration: underline; */
/* } */
/**/
/* .quizes-list{ */
/*     display: flex; */
/*     flex-direction: row; */
/*     flex-wrap: wrap; */
/*     gap: 1rem; */
/*     margin-top: 2rem; */
/* } */
/**/
/**/
/* .quiz-item { */
/*     padding: 1rem 1.25rem; */
/*     background: #ffffff; */
/*     border: 1px solid #e5e7eb; */
/*     border: 1px solid var(--link-color); */
/*     border-radius: 8px; */
/*     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
/*     text-decoration: none; */
/*     transition: all 0.2s ease; */
/*     cursor: pointer; */
/*     margin-bottom: 0.75rem; */
/* } */
/**/
/* .quiz-item:hover { */
/*     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); */
/*     transform: translateY(-1px); */
/* } */
/**/
/* .quiz-item button{ */
/*     color: var(--link-color); */
/*     border: none; */
/*     font-size: 1rem; */
/*     background-color: white; */
/*     font-weight: bold; */
/*     cursor: pointer; */
/* } */
/**/
/* .htmx-request#spinner{ */
/*     display: flex; */
/* } */
/**/
/* h2.quiz-title{ */
/*     color: var(--third-color); */
/* } */
/**/
/* .quiz-heading { */
/*   font-size: 26px; */
/*   font-weight: 600; */
/*   color: #5C4A7A; */
/*   text-align: center; */
/*   margin: 20px 0 25px; */
/* } */
/**/
/* @keyframes blink { */
/*     0%, 80%, 100% { */
/*         opacity: 0; */
/*     } */
/*     40% { */
/*         opacity: 1; */
/*     } */
/* } */
/**/
/**/
/* #spinner{ */
/*     display: none; */
/*     justify-content: center; */
/*     margin-top: 2rem; */
/*     margin-bottom: 2rem; */
/*     gap: 0.3rem; */
/* } */
/**/
/* #spinner div{ */
/*     width: 0.79rem; */
/*     height: 0.79rem; */
/*     background-color: var(--secondary-color); */
/*     border-radius: 50%; */
/*     animation: blink 1.2s infinite; */
/* } */
/**/
/* #spinner div:nth-child(2){ */
/*     animation-delay: 0.2s; */
/* } */
/**/
/* #spinner div:nth-child(3){ */
/*     animation-delay: 0.4s; */
/* } */
/**/
/* .take-quiz-container{ */
/*     margin: 2rem 0; */
/* } */
/**/
/* .take-quiz-container h2{ */
/*     font-size: 1.2rem; */
/*     font-weight: bold; */
/*     margin-bottom: 2rem; */
/*     color: var(--primary-color); */
/* } */
/**/
/* .questions-list{ */
/*     display: flex; */
/*     flex-direction: column; */
/*     gap: 1rem; */
/* } */
/**/
/* .question-item{ */
/*     padding: 1rem; */
/**/
/**/
/* } */
/**/
/* .options { */
/*     margin-top: 0.7rem; */
/*     margin-left: 2rem; */
/*     display: flex; */
/*     flex-direction: column; */
/*     list-style: none; */
/*     gap: 0.5rem; */
/*     margin-bottom: 1rem; */
/**/
/* } */
/**/
/* .question{ */
/*     font-weight: bold; */
/*     font-size: 1rem; */
/* } */
/**/
/* .option{ */
/*     font-size: 0.9rem; */
/* } */
/**/
/* .submit-button{ */
/*     padding: 0.5rem 1rem; */
/*     font-weight: bold; */
/*     background-color: var(--primary-color); */
/*     cursor: pointer; */
/*     color: white; */
/*     border: 1px solid var(--primary-color); */
/*     border-radius: 4px; */
/*     font-size: 1rem; */
/**/
/* } */
/**/
/* input[type="radio"] { */
/*   accent-color: #1657a4; */
/*   cursor: pointer; */
/* } */

/* @media (max-width: 768px) {
    .quizes-list {
        display: grid;
        justify-content: center;
    }
} */


/* AI */
.quiz-home-container {
    width: 80%;
    margin: auto;
}

.quiz-home-container h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: calc(70px + 2.5rem);
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.quiz-home-container h1::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: rgb(191, 68, 68);
    margin: 1rem auto 0;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quiz-home-container h1:hover::after {
    width: 80px;
}

.quiz-home-container > p {
    text-align: center;
    color: var(--secondary-color);
    max-width: 420px;
    margin: 0.75rem auto 2.5rem;
    font-size: 0.95rem;
}

/* --- stats --- */
.quiz-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--secondary-bg, #f9fafb);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-value.date {
    font-size: 1rem;
    padding-top: 4px;
}

/* --- topic grid --- */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.quizes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 0;
}

.quiz-chip {
    background: var(--bg-color, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-chip:hover {
    border-color: rgb(191, 68, 68);
    transform: translateY(-2px);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(191, 68, 68);
    flex-shrink: 0;
}

.chip-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.chip-sub {
    font-size: 0.72rem;
    color: var(--secondary-color);
    margin-top: 2px;
}

/* --- spinner --- */
.htmx-request#spinner {
    display: flex;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

#spinner {
    display: none;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 0.3rem;
}

#spinner div {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

#spinner div:nth-child(2) { animation-delay: 0.2s; }
#spinner div:nth-child(3) { animation-delay: 0.4s; }

/* --- take quiz --- */
.take-quiz-container {
    padding: 2rem 0 3rem;
}

.quiz-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(191, 68, 68);
    margin-bottom: 0.5rem;
}

.quiz-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    text-align: left;
    margin: 0;
}

.quiz-heading-accent {
    width: 32px;
    height: 3px;
    background: rgb(191, 68, 68);
    border-radius: 2px;
    margin: 0.75rem 0 2rem;
}

.questions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.question-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: transparent;
}

.question-item:first-child {
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.q-meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.q-num {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgb(191, 68, 68);
    min-width: 20px;
    padding-top: 3px;
    flex-shrink: 0;
}

.question {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.5;
}

.options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 30px;
    margin: 0;
}

.option { display: flex; }

.option input[type="radio"] { display: none; }

.option label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.option label::before {
    content: "";
    width: 15px;
    height: 15px;
    min-width: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color, #e5e7eb);
    transition: all 0.15s;
    flex-shrink: 0;
}

.option label:hover {
    background: var(--secondary-bg, #f9fafb);
    color: var(--primary-color);
}

.option label:hover::before {
    border-color: var(--secondary-color);
}

.option input[type="radio"]:checked + label {
    background: #FAECE7;
    color: #712B13;
}

.option input[type="radio"]:checked + label::before {
    border-color: rgb(191, 68, 68);
    background: rgb(191, 68, 68);
    box-shadow: inset 0 0 0 3px #FAECE7;
}

/* --- footer --- */
.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
}

.quiz-count {
    font-size: 0.82rem;
    color: var(--secondary-color);
}

.submit-button {
    margin-top: 1rem;
    padding: 0.65rem 1.75rem;
    background: rgb(191, 68, 68);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.submit-button:hover { background: #a33a3a; }
.submit-button:active { transform: scale(0.97); }


.login-nudge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FAECE7;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #712B13;
    margin-top: 2rem;
}

.login-nudge::before {
    content: "";
    width: 4px;
    height: 100%;
    min-height: 18px;
    background: rgb(191, 68, 68);
    border-radius: 2px;
    flex-shrink: 0;
}

.login-nudge a {
    color: rgb(191, 68, 68);
    font-weight: 600;
    text-decoration: none;
}

.login-nudge a:hover {
    text-decoration: underline;
}
