/* Project-specific styles for the HUP platform projects page */

/* Project Grid */
/* .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
} */

/* Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-info {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title-group {
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Member projects / dashboard: title, progress, actions pinned to card bottom */
.member-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.member-project-card .project-thumbnail {
    flex-shrink: 0;
}

.member-project-card .member-project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.member-project-card__title {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.member-project-card__badge-row {
    margin-bottom: 0.75rem;
}

.member-project-card__progress {
    flex: 1 1 auto;
    margin-top: 0;
    margin-bottom: 0;
}

.member-project-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.member-project-card__actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
}

.edit-project {
    transition: all 0.3s ease;
}

.edit-project:hover {
    background: var(--page-primary);
    transform: scale(1.05);
}

/* Progress Items */
.project-progress {
    margin-top: 1rem;
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item span {
    font-size: 0.9rem;
    color: var(--light);
}

.edit-part {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.edit-part:hover {
    background: var(--page-primary);
    transform: scale(1.05);
}

.progress {
    height: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.progress-bar {
    background: var(--page-primary);
}

/* Modal */
.modal-content {
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.modal-header, .modal-footer {
    border-color: var(--glass-border);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--light);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(110, 69, 226, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}