/* Projects Page Styles - Extends Modern UX Design System */

.header-nav {
    margin-bottom: 16px;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    transition: all var(--transition-base);
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Project Status States */
.project-card.project-active::before {
    background: linear-gradient(180deg, var(--success) 0%, #10b981 100%);
}

.project-card.project-past::before {
    background: var(--text-muted);
}

.project-card.project-past {
    opacity: 0.75;
}

.project-card.project-future::before {
    background: linear-gradient(180deg, var(--warning) 0%, #f59e0b 100%);
}

/* Project Status Badge */
.project-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.project-active .project-status {
    color: var(--success);
    background: var(--success-glow);
}

.project-past .project-status {
    color: var(--text-muted);
    background: rgba(107, 114, 128, 0.15);
}

.project-future .project-status {
    color: var(--warning);
    background: var(--warning-bg);
}

/* Project Content */
.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.project-description {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.project-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    width: fit-content;
}

.date-icon {
    font-size: 1rem;
    opacity: 0.8;
}

/* Mini Progress Bar */
.project-progress {
    margin-bottom: 20px;
}

.mini-progress-bar {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    height: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mini-progress-fill {
    background: linear-gradient(90deg, var(--accent-primary) 0%, #818cf8 100%);
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* View Project Button */
.btn-view-project {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-view-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-view-project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-view-project:hover::before {
    left: 100%;
}

.btn-view-project:focus {
    outline: none;
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--accent-primary-glow);
}

/* Project Detail View */
.important-banner {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 28px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.important-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

.important-text {
    color: var(--warning);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Project Section */
.project-section {
    margin-bottom: 36px;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 18px;
    font-style: italic;
    padding-left: 12px;
    border-left: 2px solid var(--border-default);
}

/* Task card enhancements for projects */
.task-important {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
    color: var(--warning);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.task-why {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 2px solid var(--border-default);
    line-height: 1.6;
}

.task-why strong {
    color: var(--text-secondary);
}

.task-extra-details {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 14px;
    font-style: italic;
}

/* Task Steps */
.task-steps {
    margin-bottom: 14px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 16px;
}

.task-steps strong {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 10px;
}

.task-steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.task-steps li {
    margin-bottom: 8px;
    padding-left: 6px;
}

.task-steps li:last-child {
    margin-bottom: 0;
}

.task-steps li::marker {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Task Alert */
.task-alert {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 14px;
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Emergency Info Section */
.emergency-info {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.emergency-info h3 {
    color: var(--danger);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-info h3::before {
    content: '🚨';
    font-size: 1.1rem;
}

.emergency-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.emergency-info p strong {
    color: var(--danger);
}

.emergency-info ul {
    margin: 10px 0 18px 0;
    padding-left: 20px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.emergency-info li {
    margin-bottom: 8px;
}

.emergency-info li::marker {
    color: var(--danger);
}

.purchase-note {
    color: var(--text-muted) !important;
    font-style: italic;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--danger-border);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card {
        padding: 20px;
    }

    .project-name {
        font-size: 1.25rem;
    }

    .project-dates {
        width: 100%;
        justify-content: center;
    }

    .important-banner {
        padding: 16px;
    }

    .emergency-info {
        padding: 20px;
    }

    .task-steps {
        padding: 14px;
    }
}
