/* ============================================================
   projects.css  — Project Show Page
   ============================================================ */

/* ── Hero Banner ─────────────────────────────────────────────────────── */
.proj-hero {
    background: linear-gradient(135deg, #0d1f0d 0%, #1a3520 60%, #0f2410 100%);
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;
}
.proj-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.proj-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.proj-hero-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.proj-hero-breadcrumb a:hover { color: #c7ea46; }
.proj-hero-breadcrumb i { font-size: 10px; }
.proj-hero-breadcrumb span { color: #c7ea46; }

.proj-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.25rem;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.proj-hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.proj-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.proj-status-open     { background: rgba(199,234,70,.2); color: #c7ea46; border: 1px solid rgba(199,234,70,.4); }
.proj-status-closed   { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.proj-status-in_progress { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.proj-status-completed { background: rgba(34,197,94,.2); color: #86efac; border: 1px solid rgba(34,197,94,.3); }

.proj-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
}
.proj-meta-chip i { font-size: 10px; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.proj-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.75rem;
    align-items: start;
}
.proj-main,
.proj-sidebar {
    min-width: 0;
    width: 100%;
}
@media (max-width: 900px) {
    .proj-layout {
        grid-template-columns: minmax(0, 1fr);
        overflow-x: hidden;
    }
    .proj-card-sticky { position: static !important; }
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.proj-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.proj-card:last-child { margin-bottom: 0; }

.proj-card-sticky {
    position: sticky;
    top: 80px;
}

.proj-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.proj-card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.proj-card-header-between {
    justify-content: space-between;
}
.proj-icon-accent { color: #16a34a; font-size: 16px; }

.proj-count-badge {
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

/* ── Alerts ──────────────────────────────────────────────────────────── */
.proj-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.proj-alert-success { background: rgba(34,197,94,.1); color: #166534; border: 1px solid rgba(34,197,94,.3); }
.proj-alert-danger  { background: rgba(239,68,68,.08); color: #991B1B; border: 1px solid rgba(239,68,68,.2); }

/* ── Description ─────────────────────────────────────────────────────── */
.proj-description {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    white-space: pre-wrap;
}

/* ── Skills ──────────────────────────────────────────────────────────── */
.proj-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.proj-skill-tag {
    padding: 6px 14px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Details Grid ────────────────────────────────────────────────────── */
.proj-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.proj-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}
.proj-detail-icon {
    width: 36px;
    height: 36px;
    background: #f0fdf4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 14px;
    flex-shrink: 0;
}
.proj-detail-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-bottom: 3px;
}
.proj-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.proj-days-left {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
}
.proj-days-left.urgent { background: #fef2f2; color: #dc2626; }
.proj-days-left.expired { background: #f3f4f6; color: #6b7280; }

/* ── Proposals ───────────────────────────────────────────────────────── */
.proj-proposal-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow .2s;
}
.proj-proposal-card:last-child { margin-bottom: 0; }
.proj-proposal-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.proj-proposal-card.accepted { border-color: #86efac; background: #f0fdf4; }

.proj-proposal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.proj-proposal-user { display: flex; align-items: center; gap: 12px; }
.proj-proposal-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.proj-proposal-name { font-weight: 700; color: #111827; text-decoration: none; font-size: 15px; }
.proj-proposal-name:hover { color: #16a34a; }
.proj-proposal-rating { font-size: 12px; color: #6b7280; margin-top: 2px; }

.proj-proposal-bid { text-align: right; }
.proj-proposal-amount { font-size: 1.3rem; font-weight: 800; color: #16a34a; }
.proj-proposal-delivery { font-size: 12px; color: #6b7280; margin-top: 2px; }

.proj-proposal-letter {
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    margin: 0 0 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}
.proj-proposal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.proj-proposal-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.proj-proposal-status-pending  { background: #fef9c3; color: #854d0e; }
.proj-proposal-status-accepted { background: #dcfce7; color: #166534; }
.proj-proposal-status-rejected { background: #fee2e2; color: #991b1b; }

.proj-btn-accept {
    padding: 6px 14px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.proj-btn-accept:hover { background: #15803d; }
.proj-btn-view-profile {
    padding: 6px 14px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.proj-btn-view-profile:hover { border-color: #16a34a; color: #16a34a; }

/* Empty proposals state */
.proj-empty-proposals {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}
.proj-empty-proposals i { font-size: 2.5rem; margin-bottom: 1rem; display: block; opacity: .4; }
.proj-empty-proposals h3 { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: .5rem; }
.proj-empty-proposals p { font-size: 14px; margin-bottom: 1.25rem; }
.proj-btn-share {
    padding: 10px 20px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.proj-btn-share:hover { background: #dcfce7; }

/* ── Similar Projects ────────────────────────────────────────────────── */
.proj-similar-list { display: flex; flex-direction: column; gap: 10px; }
.proj-similar-item {
    display: block;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}
.proj-similar-item:hover { border-color: #c7ea46; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.proj-similar-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.proj-similar-meta { display: flex; gap: 12px; font-size: 12px; color: #9ca3af; flex-wrap: wrap; align-items: center; }
.proj-similar-meta i { font-size: 10px; }
.proj-similar-budget { font-weight: 700; color: #16a34a; }

/* ── Sidebar Budget ──────────────────────────────────────────────────── */
.proj-budget-block { margin-bottom: 1.25rem; }
.proj-budget-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; font-weight: 600; margin-bottom: 4px; }
.proj-budget-amount { font-size: 1.8rem; font-weight: 800; color: #16a34a; line-height: 1.2; }
.proj-budget-type { font-size: 13px; color: #6b7280; margin-top: 4px; }

.proj-deadline-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 1.25rem;
    border: 1px solid #f3f4f6;
}
.proj-deadline-bar i { color: #f59e0b; }

/* ── CTA / Action Buttons ────────────────────────────────────────────── */
.proj-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #c7ea46, #a8d730);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 10px;
    text-align: center;
}
.proj-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(199,234,70,.4); }

.proj-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: transparent;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 8px;
    text-decoration: none;
    text-align: center;
}
.proj-secondary-btn:hover { border-color: #16a34a; color: #16a34a; }

.proj-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #9ca3af;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    margin-top: 6px;
}
.proj-share-btn:hover { color: #374151; border-color: #9ca3af; }

/* Applied state */
.proj-already-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    color: #166534;
    margin-bottom: 8px;
}
.proj-already-applied i { color: #22c55e; }
.proj-applied-status {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.proj-applied-status-pending  { background: #fef9c3; color: #854d0e; }
.proj-applied-status-accepted { background: #dcfce7; color: #166534; }
.proj-applied-status-rejected { background: #fee2e2; color: #991b1b; }

/* ── Client Info ─────────────────────────────────────────────────────── */
.proj-client-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.proj-client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3520, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #c7ea46;
    font-size: 16px;
    flex-shrink: 0;
}
.proj-client-name { font-weight: 700; color: #111827; text-decoration: none; font-size: 15px; display: block; }
.proj-client-name:hover { color: #16a34a; }
.proj-client-since { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.proj-client-since i { font-size: 10px; }

.proj-client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}
.proj-client-stat { text-align: center; }
.proj-client-stat-value { font-size: 15px; font-weight: 700; color: #111827; }
.proj-client-stat-label { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.proj-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.proj-message-btn:hover { background: #dcfce7; }

/* ── Report Card ─────────────────────────────────────────────────────── */
.proj-card-report {
    padding: 10px 16px;
    background: transparent;
    border: 1px dashed #fecaca;
}
.proj-report-link {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    width: 100%;
    justify-content: center;
}
.proj-report-link:hover { color: #dc2626; text-decoration: underline; }

/* ── Modals ──────────────────────────────────────────────────────────── */
.proj-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}
.proj-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: modalIn .2s ease;
}
.proj-modal-lg { max-width: 600px; }
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }

.proj-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.proj-modal-head h3 { font-size: 16px; font-weight: 700; margin: 0; color: #111827; }
.proj-modal-head-danger { background: #fff5f5; }
.proj-modal-head-danger h3 { color: #dc2626; }
.proj-modal-close {
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background .15s;
}
.proj-modal-close:hover { background: #e5e7eb; }

.proj-modal-body { padding: 1.25rem 1.5rem; }
.proj-modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.proj-modal-label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 6px; }

.proj-copy-row { display: flex; gap: 8px; }
.proj-copy-input { flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 13px; color: #374151; background: #f9fafb; outline: none; }
.proj-copy-btn { padding: 10px 16px; background: #16a34a; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
.proj-copy-btn:hover { background: #15803d; }

.proj-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proj-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
    border: none;
}
.proj-social-btn:hover { opacity: .85; }
.proj-social-facebook { background: #1877f2; color: #fff; }
.proj-social-twitter  { background: #1da1f2; color: #fff; }
.proj-social-linkedin { background: #0a66c2; color: #fff; }
.proj-social-whatsapp { background: #25d366; color: #fff; }

.proj-search-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.proj-search-input:focus { border-color: #16a34a; }

.proj-invite-list { min-height: 120px; }
.proj-invite-empty {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 14px;
}
.proj-invite-empty i { font-size: 1.75rem; display: block; margin-bottom: .75rem; opacity: .5; }
.proj-invite-empty p { margin: 0; }
.proj-invite-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.proj-invite-row:last-child { border-bottom: none; }
.proj-invite-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0;
}
.proj-invite-info { flex: 1; min-width: 0; }
.proj-invite-name { font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-invite-title { font-size: 12px; color: #6b7280; }
.proj-invite-btn { padding: 7px 14px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; flex-shrink: 0; }
.proj-invite-btn:hover { background: #15803d; }

.proj-select, .proj-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    box-sizing: border-box;
}
.proj-select:focus, .proj-textarea:focus { border-color: #16a34a; }
.proj-textarea { resize: vertical; }

.proj-btn-cancel {
    padding: 9px 18px;
    background: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: background .15s;
}
.proj-btn-cancel:hover { background: #f9fafb; }
.proj-btn-danger {
    padding: 9px 18px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.proj-btn-danger:hover { background: #dc2626; }

/* ── Mobile Adjustments ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .proj-hero { padding: 1.75rem 0 1.5rem; }
    .proj-hero-title { font-size: 1.5rem; }
    .proj-layout { padding: 1rem; gap: 1rem; }
    .proj-card { padding: 1.1rem; border-radius: 12px; }
    .proj-budget-amount { font-size: 1.5rem; }
    .proj-details-grid { grid-template-columns: 1fr; }
    .proj-proposal-top { flex-direction: column; }
    .proj-proposal-bid { text-align: left; }
    .proj-social-grid { grid-template-columns: 1fr; }
    .proj-client-stats { grid-template-columns: repeat(3, 1fr); }
    .proj-modal { border-radius: 16px 16px 0 0; max-height: 85vh; align-self: flex-end; }
    .proj-modal-overlay { align-items: flex-end; padding: 0; }
}
