/* My Projects Page Styles */

/* ===== DRAFT SAVED BANNER ===== */
.draft-saved-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-bottom: 1px solid #b8dacc;
    padding: 16px 0;
    position: relative;
    z-index: 10;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    color: #155724;
    font-size: 0.875rem;
    line-height: 1.4;
}

.banner-text strong {
    font-weight: 600;
}

.banner-close {
    background: none;
    border: none;
    color: #155724;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background-color: rgba(21, 87, 36, 0.1);
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-light);
}

.page-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ===== PROJECT ACTIONS ===== */
.project-actions {
    display: flex;
    gap: 16px;
}

.btn-primary-small {
    margin-bottom: 12px;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-description {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    border-color: var(--primary-blue-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.draft {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.status-badge.published {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.unpublished {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.project-actions-menu {
    position: relative;
}

.action-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.project-content {
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.project-location,
.project-budget,
.project-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== PROJECT PROGRESS ===== */
.project-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== PROJECT STATS ===== */
.project-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== PROJECT UPDATES ===== */
.project-updates {
    margin-bottom: 16px;
}

.update-item {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.update-date {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 80px;
}

.update-text {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ===== PROJECT RESULTS ===== */
.project-results {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.result-value {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== PROJECT REASON ===== */
.project-reason {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.reason-label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.reason-text {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ===== PROJECT FOOTER ===== */
.project-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.project-footer .btn {
    font-size: 0.875rem;
    padding: 8px 16px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .draft-saved-banner {
        padding: 12px 0;
    }
    
    .banner-content {
        gap: 8px;
        padding: 0 16px;
    }
    
    .banner-text {
        font-size: 0.8rem;
    }
    
    .page-hero {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .project-tabs-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .project-actions {
        justify-content: center;
    }
    
    .project-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .project-footer {
        flex-direction: column;
    }
    
    .project-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .draft-saved-banner {
        padding: 10px 0;
    }
    
    .banner-content {
        gap: 6px;
        padding: 0 12px;
    }
    
    .banner-text {
        font-size: 0.75rem;
    }
    
    .banner-close {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }
    
    .page-hero {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-description {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
}
