/*
 * Develancer R210 — Project show premium UI
 * Scope: resources/views/projects/show.blade.php only
 */

.r210-project-page {
    padding: 30px 0 52px;
}

.r210-project-shell {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}

.r210-project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(300px, .72fr);
    gap: 22px;
    align-items: start;
}

.r210-project-layout.is-wide {
    grid-template-columns: minmax(0, 1fr);
}

.r210-project-layout.is-wide > .r210-project-card {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}

.r210-project-card,
.r210-sidebar-card,
.r210-proposals-card {
    border: 1px solid #dbe7f6;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 58px rgba(15, 23, 42, .075);
}

.r210-project-card {
    min-width: 0;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
}

.r210-project-head {
    position: relative;
    margin: -28px -28px 26px;
    padding: 26px 28px 24px;
    border-bottom: 1px solid #dbeafe;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .11), transparent 38%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 56%, #f1f7ff 100%);
}

.r210-project-head::after {
    content: "";
    position: absolute;
    inset-inline-start: 28px;
    bottom: -1px;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}

.r210-project-head-top,
.r210-project-badges,
.r210-project-byline,
.r210-project-tags,
.r210-proposals-head {
    display: flex;
    align-items: center;
}

.r210-project-head-top,
.r210-proposals-head {
    justify-content: space-between;
    gap: 16px;
}

.r210-project-badges,
.r210-project-byline,
.r210-project-tags {
    flex-wrap: wrap;
    gap: 8px;
}

.r210-status-pill,
.r210-category-pill,
.r210-urgent-pill,
.r210-proposal-count,
.r210-project-tags > span,
.r210-proposals-count,
.r210-proposals-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    white-space: nowrap;
}

.r210-status-pill {
    color: #475569;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

.r210-status-pill.is-open {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.r210-status-pill.is-open::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.r210-category-pill {
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.r210-urgent-pill {
    color: #b45309;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.r210-proposal-count,
.r210-proposals-count {
    color: #475569;
    border: 1px solid #dbe3ef;
    background: rgba(255, 255, 255, .85);
}

.r210-project-title {
    max-width: 820px;
    margin: 20px 0 10px;
    color: #0f172a;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 950;
    line-height: 1.55;
    letter-spacing: -.02em;
}

.r210-project-byline {
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.r210-project-byline strong {
    color: #334155;
    font-weight: 900;
}

.r210-project-byline > span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 4px 1px 9px;
    border-radius: 999px;
    background: #94a3b8;
}

.r210-project-tags {
    margin-top: 16px;
}

.r210-project-tags > span {
    min-height: 30px;
    color: #334155;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .78);
}

.r210-project-card > .alert {
    margin: 0 0 22px;
    border-radius: 18px;
    line-height: 2;
}

.r210-description-block {
    margin: 0;
    padding: 22px 0 4px;
    border: 0;
    background: transparent;
}

.r210-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.r210-section-title > span {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.r210-section-title > span::before,
.r210-section-title > span::after {
    content: "";
    position: absolute;
    inset-inline-start: 10px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #2563eb;
}

.r210-section-title > span::before {
    top: 12px;
}

.r210-section-title > span::after {
    top: 21px;
    width: 13px;
}

.r210-section-title small {
    display: block;
    margin-bottom: 1px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.r210-section-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
}

.r210-description-block > p {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #e5edf7;
    border-radius: 20px;
    color: #334155;
    background: #fbfdff;
    font-size: 14.5px;
    line-height: 2.25;
    overflow-wrap: anywhere;
}

.r210-project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.r210-meta-card,
.r210-extra-card {
    min-width: 0;
    margin: 0;
    border: 1px solid #e2eaf4;
    background: #f8fbff;
    box-shadow: none;
}

.r210-meta-card {
    position: relative;
    min-height: 150px;
    padding: 18px;
    border-radius: 20px;
    overflow: hidden;
}

.r210-meta-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -18px;
    bottom: -26px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .055);
}

.r210-budget-card {
    border-color: #cfe0fb;
    background: linear-gradient(145deg, #f8fbff, #f2f7ff);
}

.r210-time-card {
    border-color: #d9e8e4;
    background: linear-gradient(145deg, #fbfefd, #f1fbf7);
}

.r210-meta-label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.r210-meta-card .price,
.r210-meta-value {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #0f766e;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.8;
}

.r210-budget-card .price {
    color: #047857;
}

.r210-meta-card .muted {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.r210-meta-action {
    position: relative;
    z-index: 2;
    margin-top: 12px;
}

.r210-meta-action .btn {
    width: 100%;
}

.r210-project-extra-grid {
    margin-top: 14px;
    gap: 14px;
}

.r210-extra-card {
    min-height: 118px;
    padding: 18px;
    border-radius: 20px;
}

.r210-extra-card > strong {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 950;
}

.r210-extra-card .muted {
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 2;
}

.r210-sidebar-card,
.r210-project-layout > .r195b0-proposal-launcher {
    position: sticky;
    top: 92px;
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
}

.r210-sidebar-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
}

.r210-sidebar-card > .muted,
.r210-sidebar-card > p.muted {
    color: #64748b;
    font-size: 13.5px;
    line-height: 2;
}

.r210-sidebar-card > .btn,
.r210-sidebar-card > a.btn,
.r210-sidebar-card > form > .btn,
.r210-sidebar-card > form > a.btn {
    width: 100%;
    justify-content: center;
}

.r210-proposal-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 70, 229, .11), transparent 40%),
        linear-gradient(145deg, #ffffff, #f8faff);
}

.r210-proposal-card::before {
    content: "پیشنهاد همکاری";
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #4338ca;
    background: #eef2ff;
    font-size: 11px;
    font-weight: 900;
}

.r210-owner-panel {
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
}

.r210-project-layout > .r195b0-proposal-launcher {
    display: grid !important;
    gap: 16px !important;
    margin: 0 !important;
    border-color: #dbe7f6 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 70, 229, .12), transparent 42%),
        linear-gradient(145deg, #ffffff, #f7f9ff) !important;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .075) !important;
}

.r210-project-layout > .r195b0-proposal-launcher .r195b0-proposal-launcher-copy strong {
    font-size: 19px;
}

.r210-project-layout > .r195b0-proposal-launcher .r195b0-proposal-trigger {
    width: 100%;
    min-width: 0;
}

.r210-proposals-section {
    padding: 34px 0 0;
}

.r210-proposals-head {
    margin-bottom: 14px;
}

.r210-proposals-head .title {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.r210-proposals-kicker {
    min-height: auto;
    padding: 0;
    color: #2563eb;
    background: transparent;
    font-size: 11px;
}

.r210-proposals-card {
    padding: 18px;
    border-radius: 26px;
}

.r210-proposals-card > .card {
    border: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    background: #ffffff;
    box-shadow: none;
}

.r210-proposals-card > .card:last-child {
    margin-bottom: 0 !important;
}

.r210-empty-state {
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 28px 18px;
    text-align: center;
}

.r210-empty-icon {
    position: relative;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border: 1px solid #cfe0fb;
    border-radius: 20px;
    background: linear-gradient(145deg, #eff6ff, #e0e7ff);
}

.r210-empty-icon::before {
    content: "";
    position: absolute;
    inset: 15px 13px 18px;
    border: 3px solid #3b82f6;
    border-radius: 8px;
}

.r210-empty-icon::after {
    content: "";
    position: absolute;
    inset-inline-start: 19px;
    bottom: 12px;
    width: 14px;
    height: 10px;
    border-inline-start: 3px solid #3b82f6;
    transform: skewY(-35deg);
}

.r210-empty-state strong {
    color: #1e293b;
    font-size: 16px;
    font-weight: 950;
}

.r210-empty-state p {
    max-width: 420px;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.9;
}

@media (max-width: 960px) {
    .r210-project-layout,
    .r210-project-layout.is-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .r210-project-layout.is-wide > .r210-project-card {
        max-width: none;
    }

    .r210-sidebar-card,
    .r210-project-layout > .r195b0-proposal-launcher {
        position: static;
        top: auto;
    }

    .r210-owner-panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .r210-project-page {
        padding: 14px 0 28px !important;
    }

    .r210-project-shell {
        width: 100% !important;
        padding-inline: 12px !important;
    }

    .r210-project-layout {
        gap: 12px;
    }

    .r210-project-card,
    .r210-sidebar-card,
    .r210-proposals-card,
    .r210-project-layout > .r195b0-proposal-launcher {
        border-radius: 22px !important;
    }

    .r210-project-card {
        padding: 16px !important;
    }

    .r210-project-head {
        margin: -16px -16px 18px;
        padding: 18px 16px 17px;
    }

    .r210-project-head::after {
        inset-inline-start: 16px;
        width: 66px;
    }

    .r210-project-head-top {
        align-items: flex-start;
    }

    .r210-project-badges {
        gap: 6px;
    }

    .r210-status-pill,
    .r210-category-pill,
    .r210-urgent-pill,
    .r210-proposal-count,
    .r210-project-tags > span,
    .r210-proposals-count {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 10.5px;
    }

    .r210-project-title {
        margin: 15px 0 8px !important;
        font-size: 22px !important;
        line-height: 1.65 !important;
    }

    .r210-project-byline {
        display: grid;
        gap: 2px;
        font-size: 11.5px;
    }

    .r210-project-byline > span + span::before {
        display: none;
    }

    .r210-project-tags {
        margin-top: 12px;
        gap: 6px;
    }

    .r210-description-block {
        padding-top: 12px;
    }

    .r210-section-title {
        margin-bottom: 10px;
    }

    .r210-section-title > span {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .r210-section-title h2 {
        font-size: 17px;
    }

    .r210-description-block > p {
        padding: 15px;
        border-radius: 17px;
        font-size: 13.5px;
        line-height: 2.15;
    }

    .r210-project-meta-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 12px;
    }

    .r210-meta-card,
    .r210-extra-card {
        min-height: 0;
        padding: 15px !important;
        border-radius: 18px !important;
    }

    .r210-meta-card .price,
    .r210-meta-value {
        font-size: 16px;
    }

    .r210-project-extra-grid {
        margin-top: 10px;
        gap: 10px !important;
    }

    .r210-sidebar-card,
    .r210-project-layout > .r195b0-proposal-launcher {
        padding: 18px !important;
    }

    .r210-proposals-section {
        padding: 24px 0 0 !important;
    }

    .r210-proposals-head {
        align-items: flex-end;
        margin-bottom: 10px;
    }

    .r210-proposals-head .title {
        font-size: 20px !important;
    }

    .r210-proposals-card {
        padding: 12px !important;
    }

    .r210-empty-state {
        min-height: 160px;
        padding: 24px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .r210-project-page *,
    .r210-project-page *::before,
    .r210-project-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
