/* ═══════════════════════════════════════════
   Kaya Oversight Committee — Styles
   Designed to complement Kadence dark theme
═══════════════════════════════════════════ */

.koc-wrapper {
    width: 100%;
    padding: 1rem 0 2rem;
}

/* ── Grid ── */
.koc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ── Card shell ── */
.koc-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.koc-card:hover {
    border-color: rgba(255,255,255,0.18);
}

/* ── Display view ── */
.koc-card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

/* ── Avatar ── */
.koc-avatar-wrap {
    margin-bottom: 1.25rem;
}
.koc-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
    background: #1e1e1e;
    display: block;
}

/* ── Card body text ── */
.koc-card-body {
    width: 100%;
}
.koc-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.koc-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9b9b9b;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.15em 0.6em;
    border-radius: 2px;
}
.koc-bio {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
    text-align: left;
}

/* ── Socials ── */
.koc-socials {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    text-align: left;
}
.koc-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}
a.koc-social-link:hover {
    color: #ccc;
}
.koc-social-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Edit button ── */
.koc-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.45rem 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    color: #bbb;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.koc-edit-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════
   EDIT FORM
═══════════════════════════ */
.koc-edit-form {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
}
.koc-edit-form[hidden] {
    display: none;
}
.koc-edit-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Form labels + inputs ── */
.koc-edit-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.koc-edit-form input[type="text"],
.koc-edit-form textarea {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    color: #ddd;
    font-size: 0.88rem;
    padding: 0.5rem 0.65rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
    resize: vertical;
}
.koc-edit-form input[type="text"]:focus,
.koc-edit-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}
.koc-edit-form textarea {
    min-height: 90px;
}

/* ── Social subfields ── */
.koc-socials-fields {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 3px;
    padding: 0.75rem 1rem 0.25rem;
    margin-bottom: 0.9rem;
}
.koc-socials-fields legend {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    padding: 0 0.35rem;
    letter-spacing: 0.03em;
}
.koc-socials-fields legend span {
    font-weight: 400;
    opacity: 0.6;
}
.koc-socials-fields label {
    margin-bottom: 0.6rem;
}

/* ── Avatar upload ── */
.koc-avatar-label {
    margin-bottom: 1.1rem;
}
.koc-avatar-upload-wrap {
    position: relative;
    width: 80px;
    cursor: pointer;
    margin-top: 0.3rem;
}
.koc-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    display: block;
    transition: opacity 0.15s;
}
.koc-avatar-upload-wrap:hover .koc-avatar-preview {
    opacity: 0.5;
}
.koc-avatar-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.koc-upload-hint {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.35rem;
    white-space: nowrap;
}

/* ── Form actions ── */
.koc-form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}
.koc-save-btn,
.koc-cancel-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.koc-save-btn {
    background: #e8e8e8;
    color: #111;
    border-color: #e8e8e8;
}
.koc-save-btn:hover {
    background: #fff;
}
.koc-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.koc-cancel-btn {
    background: transparent;
    color: #888;
    border-color: rgba(255,255,255,0.1);
}
.koc-cancel-btn:hover {
    color: #ccc;
    border-color: rgba(255,255,255,0.2);
}

/* ── Status message ── */
.koc-form-msg {
    font-size: 0.8rem;
    margin: 0.6rem 0 0;
    min-height: 1.2em;
}
.koc-form-msg.success { color: #6dbf6d; }
.koc-form-msg.error   { color: #e06c6c; }

/* ── Empty state ── */
.koc-empty {
    color: #666;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .koc-grid {
        grid-template-columns: 1fr;
    }
}
