/* ================================================================
   WP Wedding Core — Workspace Styles (Phase 2)
   ================================================================ */

/* ----------------------------------------------------------------
   Top bar
---------------------------------------------------------------- */
.wpwc-ws-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0 20px;
    border-bottom: 2px solid #e8e4de;
    margin-bottom: 24px;
}
.wpwc-ws-topbar__title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d5c54;
}
.wpwc-ws-topbar__sub {
    margin: 0;
    font-size: 0.9rem;
    color: #7a7670;
}

/* ----------------------------------------------------------------
   Wedding card grid
---------------------------------------------------------------- */
.wpwc-wedding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.wpwc-wedding-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid #e8e4de;
}
.wpwc-wedding-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.wpwc-wedding-card--pending {
    border: 2px solid #f0a500;
}

.wpwc-wedding-card__color-bar {
    height: 6px;
    width: 100%;
}
.wpwc-wedding-card__body {
    padding: 18px 20px 20px;
}
.wpwc-wedding-card__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d5c54;
}
.wpwc-wedding-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #7a7670;
}
.wpwc-wedding-card__meta span { display: block; }

.wpwc-wedding-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8e4de;
}
.wpwc-wedding-card__stat-label {
    font-size: 0.72rem;
    color: #7a7670;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wpwc-wedding-card__stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d5c54;
}

.wpwc-mini-progress {
    height: 5px;
    background: #e8e4de;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 3px;
}
.wpwc-mini-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #1a9e8f, #127a6e);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ----------------------------------------------------------------
   Wedding detail panel
---------------------------------------------------------------- */
.wpwc-wedding-detail {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e4de;
    overflow: hidden;
}
.wpwc-wedding-detail__header {
    background: linear-gradient(135deg, #0d5c54, #085048);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #fff;
}
.wpwc-wedding-detail__header .wpwc-btn--text { color: #b2e4df; }
.wpwc-wedding-detail__header .wpwc-btn--text:hover { color: #fff; }
.wpwc-wedding-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   Tabs
---------------------------------------------------------------- */
.wpwc-tabs {
    display: flex;
    border-bottom: 2px solid #e8e4de;
    background: #faf9f7;
    padding: 0 24px;
    overflow-x: auto;
}
.wpwc-tab {
    padding: 14px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a7670;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    margin-bottom: -2px;
}
.wpwc-tab:hover { color: #0d5c54; }
.wpwc-tab.active { color: #1a9e8f; border-bottom-color: #1a9e8f; }

.wpwc-tab-content { padding: 24px; }

/* ----------------------------------------------------------------
   Overview tab
---------------------------------------------------------------- */
.wpwc-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.wpwc-overview-card {
    background: #faf9f7;
    border: 1px solid #e8e4de;
    border-radius: 10px;
    padding: 16px 20px;
}
.wpwc-overview-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a7670;
    margin-bottom: 6px;
}
.wpwc-overview-card__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d5c54;
}
.wpwc-overview-card__sub {
    font-size: 0.78rem;
    color: #7a7670;
    margin-top: 2px;
}

/* ----------------------------------------------------------------
   Task board
---------------------------------------------------------------- */
.wpwc-task-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.wpwc-task-list { display: flex; flex-direction: column; gap: 8px; }
.wpwc-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s;
}
.wpwc-task-item:hover { border-color: #1a9e8f; }
.wpwc-task-item--completed { opacity: 0.6; }
.wpwc-task-item--completed .wpwc-task-title { text-decoration: line-through; }

.wpwc-task-check {
    width: 20px; height: 20px;
    border: 2px solid #e8e4de;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.wpwc-task-check.checked { background: #1a9e8f; border-color: #1a9e8f; color: #fff; font-size: 0.75rem; }

.wpwc-task-body { flex: 1; }
.wpwc-task-title { font-size: 0.9rem; font-weight: 600; color: #2c2a28; }
.wpwc-task-meta { font-size: 0.75rem; color: #7a7670; margin-top: 2px; }

.wpwc-priority-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wpwc-priority-dot--high   { background: #e24b4a; }
.wpwc-priority-dot--medium { background: #f0a500; }
.wpwc-priority-dot--low    { background: #27a97a; }

.wpwc-task-actions { display: flex; gap: 6px; }

/* ----------------------------------------------------------------
   Vendor list
---------------------------------------------------------------- */
.wpwc-vendor-list { display: flex; flex-direction: column; gap: 10px; }
.wpwc-vendor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    background: #fff;
    flex-wrap: wrap;
}
.wpwc-vendor-item__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a9e8f, #0d5c54);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.wpwc-vendor-item__body { flex: 1; }
.wpwc-vendor-item__name { font-weight: 600; font-size: 0.95rem; color: #0d5c54; }
.wpwc-vendor-item__meta { font-size: 0.78rem; color: #7a7670; margin-top: 2px; }

/* ----------------------------------------------------------------
   Budget table
---------------------------------------------------------------- */
.wpwc-budget-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.wpwc-budget-table th { padding: 10px 12px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #7a7670; border-bottom: 2px solid #e8e4de; }
.wpwc-budget-table td { padding: 12px; border-bottom: 1px solid #e8e4de; color: #2c2a28; }
.wpwc-budget-table tr:last-child td { border-bottom: none; }
.wpwc-budget-table tr:hover td { background: #faf9f7; }
.wpwc-budget-total { font-weight: 700; border-top: 2px solid #e8e4de !important; background: #faf9f7 !important; }

/* ----------------------------------------------------------------
   Files
---------------------------------------------------------------- */
.wpwc-file-list { display: flex; flex-direction: column; gap: 8px; }
.wpwc-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    background: #fff;
}
.wpwc-file-item__icon { font-size: 1.4rem; flex-shrink: 0; }
.wpwc-file-item__body { flex: 1; }
.wpwc-file-item__name { font-size: 0.88rem; font-weight: 600; color: #0d5c54; }
.wpwc-file-item__meta { font-size: 0.75rem; color: #7a7670; margin-top: 2px; }
.wpwc-file-item a { color: #1a9e8f; text-decoration: none; }
.wpwc-file-item a:hover { text-decoration: underline; }

.wpwc-upload-zone {
    border: 2px dashed #e8e4de;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.wpwc-upload-zone:hover, .wpwc-upload-zone.drag-over { border-color: #1a9e8f; background: #f0faf9; }
.wpwc-upload-zone__icon { font-size: 2rem; margin-bottom: 8px; }
.wpwc-upload-zone__text { font-size: 0.88rem; color: #7a7670; }

/* ----------------------------------------------------------------
   Invite accept page
---------------------------------------------------------------- */
.wpwc-invite-accept { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); overflow: hidden; }
.wpwc-invite-accept__body { padding: 28px; }
.wpwc-invite-summary { background: #faf9f7; border: 1px solid #e8e4de; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.wpwc-invite-summary__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; border-bottom: 1px solid #e8e4de; }
.wpwc-invite-summary__row:last-child { border-bottom: none; }
.wpwc-invite-summary__row span { color: #7a7670; }
.wpwc-invite-error { max-width: 520px; margin: 40px auto; background: #fcebeb; border: 1px solid #f09595; border-radius: 8px; padding: 20px 24px; color: #a32d2d; }

/* ----------------------------------------------------------------
   Workspace empty state
---------------------------------------------------------------- */
.wpwc-workspace-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7a7670;
}
.wpwc-workspace-empty__icon { font-size: 3rem; margin-bottom: 16px; }
.wpwc-workspace-empty h3 { color: #0d5c54; font-size: 1.2rem; margin-bottom: 8px; }
.wpwc-workspace-empty p { font-size: 0.9rem; max-width: 400px; margin: 0 auto; }

/* ----------------------------------------------------------------
   Modal wide variant
---------------------------------------------------------------- */
.wpwc-modal--wide { max-width: 640px; }
.wpwc-modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e4de;
}
.wpwc-modal-header-bar h3 { margin: 0; color: #0d5c54; }
.wpwc-modal-close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #7a7670; line-height: 1; }
.wpwc-modal-close-btn:hover { color: #2c2a28; }

/* ----------------------------------------------------------------
   Loading spinner
---------------------------------------------------------------- */
.wpwc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #7a7670;
    font-size: 0.9rem;
}
.wpwc-loading::before {
    content: '';
    display: block;
    width: 32px; height: 32px;
    border: 3px solid #e8e4de;
    border-top-color: #1a9e8f;
    border-radius: 50%;
    animation: wpwc-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes wpwc-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 640px) {
    .wpwc-wedding-grid { grid-template-columns: 1fr; }
    .wpwc-ws-topbar { flex-direction: column; align-items: flex-start; }
    .wpwc-wedding-detail__header { flex-direction: column; align-items: flex-start; }
    .wpwc-tabs { padding: 0 12px; }
    .wpwc-tab-content { padding: 16px; }
    .wpwc-overview-grid { grid-template-columns: 1fr 1fr; }
    .wpwc-modal--wide { max-width: 100%; margin: 20px; }
}
