/* ==========================================================================
   CRAFT Web Labeler — Projects Page Stylesheet
   Styles specific to the project selection page (projects.html).
   Shared foundation styles are in base.css.
   ========================================================================== */

body {
  min-height: 100vh;
  padding: 24px;
}

.container {
    max-width: 880px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Button styles now provided by .btn system in base.css */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 18px;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
}
.project-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.project-name-input {
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--bg-input);
    border: 2px solid var(--accent);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    padding: 4px 8px;
    width: 100%;
    font-family: inherit;
    outline: none;
}

.project-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s;
}
.project-card:hover .project-actions { opacity: 1; }

/* Action button styles now provided by .btn-ghost in base.css */

.project-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.project-meta span { display: block; margin-top: 5px; }

.image-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(108,140,255,.1);
    padding: 3px 9px;
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* Modal overrides specific to projects page */
.modal h2 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.modal p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.empty-state p { margin-bottom: 18px; }
