/*
|--------------------------------------------------------------------------
| TechPackHub Client Portal v2
| Projects
| File: assets/css/projects.css
|--------------------------------------------------------------------------
*/

/* ==========================================================
   Section
========================================================== */

.tph-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
}

.tph-section-header h2{
    margin:0;
    font-size:2rem;
    font-weight:700;
    color:var(--tph-heading);
    line-height:1.2;
}

.tph-recent-projects{
    display:flex;
    flex-direction:column;
    gap:20px;
}


/* ==========================================================
   Project Grid
========================================================== */

.tph-project-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}


/* ==========================================================
   Project Card
   (Uses .tph-card from cards.css)
========================================================== */

.tph-project-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;

    min-height:220px;

    padding:20px;

    background:#fff;

    border:1px solid var(--tph-border);

    border-radius:20px;

    box-shadow:0 10px 24px rgba(15,23,42,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.tph-project-card:hover{

transform:translateY(-2px);

border-color:var(--tph-primary);

box-shadow:0 18px 40px rgba(15,23,42,.10);

}


/* ==========================================================
   Project Header
========================================================== */

.tph-project-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.tph-project-title{
    margin:0;
    font-size:1.375rem;
    font-weight:700;
    line-height:1.35;
    color:var(--tph-heading);
}


/* ==========================================================
   Project Status
========================================================== */

.tph-project-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

.tph-project-status.active{
    background:#dcfce7;
    color:#15803d;
}

.tph-project-status.pending{
    background:#fef3c7;
    color:#b45309;
}

.tph-project-status.completed{
    background:#dbeafe;
    color:#1d4ed8;
}


/* ==========================================================
   Project Meta
========================================================== */

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

.tph-project-meta p{
    margin:0;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:15px;
    color:var(--tph-text-light);
}

.tph-project-meta strong{
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--tph-heading);
}


/* ==========================================================
   Footer
========================================================== */

.tph-project-footer{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-top:16px;
}

.tph-view-project{
    color:var(--tph-primary);
    text-decoration:none;
    font-weight:600;
    transition:color .2s ease;
}

.tph-view-project:hover{
    text-decoration:underline;
}


/* ==========================================================
   Empty State
========================================================== */

.tph-empty-state{
    padding:40px;
    text-align:center;
    border:2px dashed var(--tph-border);
    border-radius:12px;
    background:#f9fafb;
    color:var(--tph-text-light);
}


/* ==========================================================
   Responsive
========================================================== */

@media (max-width:768px){

    .tph-project-list{
        grid-template-columns:1fr;
    }

    .tph-section-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .tph-project-card-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .tph-project-meta{
        grid-template-columns:1fr;
        gap:16px;
    }

    .tph-project-footer{
        justify-content:flex-start;
    }

}

@media (max-width:480px){

    .tph-project-title{
        font-size:1.2rem;
    }

    .tph-empty-state{
        padding:24px;
    }

}