﻿/* ==========================================================
   Project Details Page Styles
   Figma: HVetc2422papKdaKgc63l5 — node 2169-72216
   ========================================================== */

/* ----- Page wrapper ----- */
.pd-page {
    min-height: 100vh;
    background: url('../img/landing/landing_bg.jpeg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* == Navbar == */
/* .pd-page .landing-navbar {
    background: transparent;
    padding: 8px 56px;
    border-bottom: none;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
} */

.pd-page .landing-navbar .lang-switcher {
    color: var(--lp-text-dark);
}

.pd-page .landing-navbar .lang-switcher span {
    color: var(--lp-text-dark);
    font-size: 16px;
    font-weight: 400;
}

.pd-page .landing-navbar .nav-links a.nav-active--border {
    background: transparent;
    color: var(--lp-text-dark);
    border: none;
    border-radius: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lp-primary);
}

.pd-page .landing-navbar .nav-links a.nav-active--border:hover {
    border-radius: 100px;
    border: 1px solid transparent;
    border-bottom: none;
    padding-bottom: 10px;
    background: var(--lp-primary);
    color: var(--lp-white);
}

/* ==========================================================
   Breadcrumb toolbar
   ========================================================== */
.pd-toolbar {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 8px 30px 4px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.pd-breadcrumb__home {
    display: flex;
    align-items: center;
    color: #683091;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb__home:hover { color: #55277a; }

.pd-breadcrumb__chevron {
    display: flex;
    align-items: center;
}

.pd-breadcrumb__label {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #5d5d5d;
    white-space: nowrap;
    text-decoration: none;
    line-height: normal;
}

.pd-breadcrumb__label--link {
    color: #683091;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb__label--link:hover { color: #55277a; }

.pd-breadcrumb__current {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    line-height: normal;
}

/* ==========================================================
   Hero / Intro section
   ========================================================== */
.pd-intro-section {
    padding: 16px 46px 20px;
}

/* Intro layout: description card + floating badge */
.pd-intro-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.pd-intro-card {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(200, 180, 220, 0.35);
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(104, 48, 145, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pd-intro-description {
    flex: 1 1 0;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.8;
    text-align: justify;
    min-width: 0;
    word-break: break-word;
}

/* Normalise rich-text HTML injected via {!! !!} */
.pd-intro-description p,
.pd-intro-description span,
.pd-intro-description div,
.pd-intro-description li,
.pd-intro-description strong,
.pd-intro-description em,
.pd-intro-description a {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    line-height: 1.8 !important;
    background: transparent !important;
}

.pd-intro-description p {
    margin: 0 0 0.6em;
}

.pd-intro-description p:last-child {
    margin-bottom: 0;
}

.pd-intro-description a {
    color: #683091 !important;
    text-decoration: underline;
}

.pd-project-badge {
    flex-shrink: 0;
    width: 169px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
}

/* Figma: rounded-rectangle logo (82×80), not a circle */
.pd-project-badge__logo {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #fff;
    display: block;
}

.pd-project-badge__name {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.35;
    margin: 0;
    white-space: normal;
}

/* ==========================================================
   Data cards section
   ========================================================== */
.pd-data-section {
    flex: 1;
    padding: 8px 46px 30px;
}

.pd-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pd-data-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(200, 180, 220, 0.35);
    box-shadow: 0 4px 24px rgba(104, 48, 145, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.pd-data-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 12px;
}

.pd-data-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.pd-data-card__title {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #683091;
    line-height: 1.45;
    margin: 0;
}

.pd-data-card__maximize {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #999;
    transition: color 0.2s;
    cursor: pointer;
}

.pd-data-card__maximize { cursor: pointer; }

.pd-data-card__maximize:hover { color: #683091; }

/* ── Fullscreen overlay ── */
.pd-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(30, 10, 50, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pd-fullscreen-overlay.active {
    display: flex;
}
.pd-fullscreen-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 48px rgba(104, 48, 145, 0.22), 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pdFsIn 0.2s ease;
}
@keyframes pdFsIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.pd-fullscreen-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #ebebeb;
    gap: 12px;
    flex-shrink: 0;
}
.pd-fullscreen-card__title {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #683091;
    margin: 0;
    line-height: 1.4;
}
.pd-fullscreen-card__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f0fb;
    color: #683091;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    padding: 0;
}
.pd-fullscreen-card__close:hover { background: #ead9f5; }
.pd-fullscreen-card__body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}

/* Download dropdown */
.pd-download-wrap {
    flex-shrink: 0;
    position: relative;
}

.pd-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #ffffff;
    color: #683091;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #683091;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.pd-download-btn:hover {
    background: #683091;
    color: #ffffff;
}

.pd-download-btn:hover svg {
    stroke: #ffffff;
}

.pd-download-btn svg { flex-shrink: 0; }

.pd-download-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 175px;
    z-index: 100;
    overflow: hidden;
}

.pd-download-wrap:hover .pd-download-dropdown,
.pd-download-wrap.open .pd-download-dropdown {
    display: block;
}

.pd-download-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s;
}

.pd-download-dropdown a:hover {
    background: #f5f0fb;
    color: #683091;
}

.pd-data-card__divider {
    height: 1px;
    background: #ebebeb;
    margin: 0;
}

/* ==========================================================
   Data table inside each card
   ========================================================== */
.pd-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}

.pd-data-table thead tr th {
    padding: 12px 16px;
    background: #f8f4fc;
    font-size: 14px;
    font-weight: 600;
    color: #3d3d3d;
    text-align: center !important;
    border-bottom: 1px solid #ebebeb;
    white-space: nowrap;
    width: 33.33%;
}

.pd-data-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.15s;
}

.pd-data-table tbody tr:last-child { border-bottom: none; }

.pd-data-table tbody tr:hover { background: #fdf9ff; }

.pd-data-table tbody tr td {
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center !important;
    line-height: 1.45;
    width: 33.33%;
}

.pd-change-rate--positive { color: #1a7f4b; font-weight: 500; }
.pd-change-rate--negative { color: #c0392b; font-weight: 500; }
.pd-change-rate--zero     { color: #6d6d6d; }

.pd-no-data {
    text-align: center;
    padding: 32px 16px;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 14px;
    color: #9ca3af;
}

/* ==========================================================
   Empty state
   ========================================================== */
.pd-empty-state {
    padding: 60px 20px;
    text-align: center;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 16px;
    color: #6d6d6d;
}

/* ==========================================================
   Footer
   ========================================================== */
.pd-page .landing-footer {
    margin-top: 0;
    padding: 16px 30px;
    border-top: 1px solid #ebebeb;
}

/* ==========================================================
   Responsive
   ========================================================== */
/* @media (max-width: 1199.98px) {
    .pd-page .landing-navbar { padding: 8px 36px; }
} */

@media (max-width: 991px) {
    /* .pd-page .landing-navbar { padding: 8px 24px; } */
    .pd-toolbar { padding: 8px 16px 4px; }
    .pd-intro-section { padding: 16px 20px; }
    .pd-intro-layout { flex-direction: column; align-items: center; gap: 20px; }
    .pd-data-section { padding: 8px 20px 24px; }
    .pd-cards-grid { grid-template-columns: 1fr; }
    .pd-intro-card { padding: 20px 20px; }
    .pd-project-badge { flex-direction: row; width: auto; justify-content: center; gap: 16px; padding-top: 0; }
    .pd-project-badge__logo { width: 70px; height: 70px; }
    .pd-project-badge__name { font-size: 15px; white-space: normal; }
}

@media (max-width: 767.98px) {
    .pd-page .landing-navbar {
        /* padding: 8px 16px; */
        flex-wrap: wrap;
    }

    .pd-page .btn-login-nav {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 575px) {
    .pd-page .btn-login-nav {
        font-size: 13px;
        padding: 7px 12px;
    }

    .pd-intro-section { padding: 12px 12px; }
    .pd-data-section { padding: 8px 12px 20px; }
    .pd-intro-layout { flex-direction: column; gap: 16px; align-items: center; }
    .pd-intro-card { padding: 18px 16px; }
    .pd-project-badge { flex-direction: column; width: auto; gap: 10px; padding-top: 0; }
    .pd-project-badge__logo { width: 64px; height: 64px; }
    .pd-project-badge__name { font-size: 14px; }
    .pd-breadcrumb { padding: 4px 0; flex-wrap: wrap; }
    .pd-breadcrumb__label, .pd-breadcrumb__current { font-size: 15px; }
}
