/* NTIC Awards Judging - frontend styles */
.ntic-wrap {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d2327;
}

.ntic-wrap h1 { margin-top: 0; font-size: 1.8rem; }
.ntic-wrap h2 { font-size: 1.3rem; }
.ntic-sub { color: #646970; }

/* ---- Login ---- */
.ntic-login-card {
    max-width: 420px;
    margin: 4rem auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ntic-login-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.ntic-form label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; }
.ntic-form input[type="text"],
.ntic-form input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-sizing: border-box;
}
.ntic-btn {
    display: inline-block;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #2c3338;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.ntic-btn-primary { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.ntic-btn-primary:hover { background: #960000; border-color: #960000; }
.ntic-btn-ghost { background: transparent; }
.ntic-btn:hover { opacity: 0.9; }

/* ---- Dashboard / Cards ---- */
.ntic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ntic-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 4px solid var(--wp--preset--color--primary);
    border-radius: 6px;
    padding: 1.25rem;
    text-decoration: none;
    color: #1d2327;
    transition: box-shadow 0.15s;
}
.ntic-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.ntic-card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.ntic-card-meta { color: #646970; font-size: 0.9rem; }

/* ---- Entries table ---- */
.ntic-entries-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.ntic-entries-table th, .ntic-entries-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid #eee; }
.ntic-entries-table th { background: #f6f7f7; }
.ntic-badge { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.ntic-badge-complete { background: #d5f5e3; color: #1e7e34; }
.ntic-badge-partial { background: #fff3cd; color: #856404; }
.ntic-badge-pending { background: #e9ecef; color: #555; }

/* ---- Judging page ---- */
.ntic-nominator { font-size: 0.9rem; color: #646970; margin-bottom: 1.5rem; }
.ntic-attachment { margin-left: 1rem; }
.ntic-question { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; }
.ntic-question h3.ntic-question-heading { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--wp--preset--color--primary); }
.ntic-answer { background: #f8f9fa; border-radius: 6px; padding: 1rem; margin-bottom: 1rem; }
.ntic-answer p { margin: 0 0 1rem; }
.ntic-answer p:last-child { margin-bottom: 0; }

/* AI indicator - accordion */
.ntic-ai-accordion { font-size: 0.85rem; margin-bottom: 1rem; background: #fef5f5; border: 1px solid #f5d0d0; border-radius: 6px; overflow: hidden; }
.ntic-ai-summary { padding: 0.6rem 0.9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.ntic-ai-summary:hover { background: #fce8e8; }
.ntic-ai-label { font-weight: 600; color: #8a3a3a; }
.ntic-ai-label strong { color: #c70000; }
.ntic-ai-chevron-wrap { display: inline-flex; align-items: center; gap: 0.3rem; color: #8a4a4a; font-size: 0.8rem; }
.ntic-ai-chevron { display: inline-block; font-size: 0.7rem; transition: transform 0.2s; }
.ntic-ai-rotate { transform: rotate(90deg); }
.ntic-ai-detail { padding: 0 0.9rem 0.6rem; display: none; }
.ntic-ai-open .ntic-ai-detail { display: block; }
.ntic-ai-bar { background: #eee; border-radius: 3px; height: 8px; margin: 0.4rem 0; }
.ntic-ai-fill { height: 8px; border-radius: 3px; transition: width 0.3s; background: var(--wp--preset--color--primary); }
.ntic-ai-note { color: #8a4a4a; font-style: italic; font-size: 0.8rem; margin: 0.4rem 0; }
.ntic-ai-breakdown { list-style: none; margin: 0.4rem 0 0 0; padding: 0; color: #5a3030; font-size: 0.8rem; }
.ntic-ai-breakdown li { margin-bottom: 0.3rem; padding: 0.2rem 0.4rem; border-radius: 3px; }
.ntic-ai-breakdown li:nth-child(odd) { background: #fcefef; }
.ntic-ai-breakdown li em { float: right; font-style: normal; font-weight: 700; color: #c70000; }

/* Slider */
.ntic-slider-row { display: flex; flex-direction: column; gap: 0.75rem; }
.ntic-slider { width: 100%; cursor: pointer; }
.ntic-slider-ticks { display: flex; justify-content: space-between; padding: 4px 0 0; font-size: 0.75rem; color: #999; }
.ntic-slider-ticks span { width: 1px; text-align: center; }
.ntic-slider-wrap { position: relative; }
.ntic-slider-ticks { display: flex; justify-content: space-between; padding: 4px 0 0; font-size: 0.65rem; color: #999; }
.ntic-slider-ticks span { width: 1px; text-align: center; }

/* Notes & actions */
.ntic-notes label { font-weight: 600; display: block; margin-bottom: 0.4rem; }
.ntic-notes textarea { width: 100%; border: 1px solid #c3c4c7; border-radius: 4px; padding: 0.6rem; box-sizing: border-box; }
.ntic-actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.ntic-save-status { margin-left: 0.75rem; font-size: 0.9rem; }
.ntic-save-status-saving { color: #646970; }
.ntic-save-status-saved { color: #1e7e34; }
.ntic-save-status-error { color: #cc0000; }

/* ---- Admin (little helpers) ---- */
.ntic-admin-stats { display: flex; gap: 1.5rem; margin: 1rem 0; }
.ntic-stat { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 1rem 1.5rem; text-align: center; }
.ntic-stat strong { display: block; font-size: 1.6rem; }
.ntic-tag { background: #e7f1fa; color: #1d3970; border-radius: 12px; padding: 0.15rem 0.6rem; font-size: 0.8rem; display: inline-block; margin: 2px 0; white-space: nowrap; }
.ntic-tag + .ntic-tag { margin-left: 4px; }
.ntic-msg { margin-top: 1rem; }
.ntic-msg-error { color: #cc0000; }

/* ---- Special assessment (Stewart Cox) ---- */
.ntic-special-body { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.ntic-special-section { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 1.25rem; }
.ntic-special-section h3 { margin: 0 0 0.75rem; }
.ntic-special-feedback { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.ntic-special-nominator { margin: 0 0 0.5rem !important; font-size: 0.9rem; }
.ntic-radio-option {
    display: block;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.4rem;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
}
.ntic-radio-option:hover { background: #f8f9fa; }
.ntic-radio-option input { margin-right: 0.5rem; }

@media (max-width: 600px) {
    .ntic-cards { grid-template-columns: 1fr; }
}