/* ================================================
   PROJECTS CARDS WITH PROGRESS BARS (Charidy-Style)
   Created: February 22, 2026
   ================================================ */

/* Projects Grid Container */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Individual Project Card */
.project-card-new {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    max-width: 450px;
}

.project-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-new:hover .project-image img {
    transform: scale(1.08);
}

/* Status Badge */
.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-status-badge.active {
    color: #2ECC71;
}

.project-status-badge i {
    font-size: 10px;
}

/* Project Content */
.project-content-new {
    padding: 25px;
}

.project-header-new {
    margin-bottom: 20px;
}

.project-name {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.project-location {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-location i {
    color: var(--gold);
    font-size: 13px;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.project-detail-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.project-detail-item:hover {
    background: #E8E8E8;
    transform: translateY(-2px);
}

.project-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.project-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.project-detail-value i {
    font-size: 16px;
    color: var(--gold);
}

/* Progress Section */
.project-progress-section {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-percentage {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 16px;
    background: #E8E8E8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--light-gold) 100%);
    border-radius: 20px;
    transition: width 1.2s ease-out;
    position: relative;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Units Info */
.units-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.units-sold {
    font-weight: 600;
    color: var(--navy-blue);
}

.units-remaining {
    color: var(--text-light);
}

.units-remaining .highlight {
    color: var(--gold);
    font-weight: 700;
}

/* CTA Button */
.project-cta-button {
    width: 100%;
    padding: 16px 24px;
    background: var(--navy-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.project-cta-button:hover {
    background: var(--gold);
    color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}

.project-cta-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.project-cta-button:hover i {
    transform: translateX(4px);
}

/* Loading State */
.projects-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.projects-loading i {
    font-size: 48px;
    color: var(--gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.projects-loading p {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-light);
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.projects-empty i {
    font-size: 64px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.projects-empty h3 {
    font-size: 24px;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.projects-empty p {
    font-size: 16px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card-new {
        max-width: 100%;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-name {
        font-size: 22px;
    }
    
    .project-details-grid {
        gap: 12px;
    }
    
    .project-detail-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-content-new {
        padding: 20px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-name {
        font-size: 20px;
    }
    
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .progress-percentage {
        font-size: 18px;
    }
    
    .project-cta-button {
        padding: 14px 20px;
        font-size: 14px;
    }
}
