/* ====================================
   PROJECTS PAGE STYLES
   ==================================== */

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--grey-lighter);
}

.page-title-section h1.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--grey-medium);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

.page-actions .btn-secondary,
.page-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-lighter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: var(--grey-lighter);
    border-radius: 2px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    color: var(--grey-medium);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Detail Card */
.project-detail-card {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s ease-out;
}

.project-detail-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(13, 133, 216, 0.15);
    transform: translateY(-4px);
}

/* Project Card Header */
.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-title-row {
    flex: 1;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.project-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status-badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.project-status-badge.status-review {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.project-status-badge.status-completed {
    background: rgba(13, 133, 216, 0.1);
    color: var(--primary-blue);
}

.project-menu-btn {
    background: transparent;
    border: none;
    color: var(--grey-medium);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.project-menu-btn:hover {
    background: var(--grey-lightest);
    color: var(--grey-dark);
}

/* Project Description */
.project-description {
    font-size: 0.95rem;
    color: var(--grey-medium);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-lighter);
}

/* Progress Section */
.project-progress-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--grey-lightest);
    border-radius: var(--radius-md);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--grey-medium);
    font-weight: 500;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-dark);
}

.progress-bar-wrapper {
    background: var(--grey-lighter);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    width: 0;
}

.progress-bar-fill.complete {
    background: linear-gradient(90deg, var(--success-green) 0%, #059669 100%);
}

.progress-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--grey-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--grey-medium);
    font-weight: 500;
}

/* Project Info Grid */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-lighter);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item svg {
    color: var(--primary-blue);
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--grey-medium);
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: var(--grey-dark);
    font-weight: 600;
}

/* Project Team */
.project-team {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-lighter);
}

.team-label {
    font-size: 0.9rem;
    color: var(--grey-medium);
    font-weight: 500;
}

.team-avatars {
    display: flex;
    gap: 0.5rem;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
    z-index: 2;
}

.team-avatar:nth-child(2) {
    background: #8B5CF6;
}

.team-avatar:nth-child(3) {
    background: #10B981;
}

.team-avatar:nth-child(4) {
    background: #F59E0B;
}

/* Project Card Actions */
.project-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.project-card-actions .btn-secondary,
.project-card-actions .btn-primary {
    flex: 1;
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 2px dashed var(--grey-lighter);
    border-radius: var(--radius-xl);
}

.projects-empty svg {
    color: var(--grey-light);
    margin-bottom: 1rem;
}

.projects-empty h3 {
    font-size: 1.25rem;
    color: var(--grey-dark);
    margin: 0 0 0.5rem;
}

.projects-empty p {
    font-size: 1rem;
    color: var(--grey-medium);
    margin: 0 0 1.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 968px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn-secondary,
    .page-actions .btn-primary {
        flex: 1;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .page-title-section h1.page-title {
        font-size: 1.75rem;
    }
    
    .filter-tabs {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-detail-card {
        padding: 1.5rem;
    }
    
    .project-name {
        font-size: 1.25rem;
    }
    
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .project-card-actions {
        flex-direction: column;
    }
    
    .project-card-actions .btn-secondary,
    .project-card-actions .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title-section h1.page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .project-detail-card {
        padding: 1.25rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .progress-stats {
        gap: 1.5rem;
    }
    
    .team-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-detail-card:nth-child(1) { animation-delay: 0.1s; }
.project-detail-card:nth-child(2) { animation-delay: 0.2s; }
.project-detail-card:nth-child(3) { animation-delay: 0.3s; }
.project-detail-card:nth-child(4) { animation-delay: 0.4s; }
.project-detail-card:nth-child(5) { animation-delay: 0.5s; }
.project-detail-card:nth-child(6) { animation-delay: 0.6s; }

