/* ==========================================================================
   Projects & Working Plans Template Stylesheet
   Project: Teach Cloud
   ========================================================================== */

/* Hero Header */
.projects-hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.projects-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.projects-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.projects-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary, #ffffff);
}

.projects-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Quick Navigation Tabs */
.projects-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.projects-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #f8fafc);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.projects-tab-btn:hover, .projects-tab-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: #38bdf8;
    transform: translateY(-2px);
}

.projects-tab-btn.secondary:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

/* Stats Snapshot */
.projects-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0 4rem;
}

.projects-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.projects-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.3);
}

.projects-stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.projects-stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.projects-stat-content .stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 0.2rem;
}

/* Section Common Headers */
.projects-section {
    margin-bottom: 4rem;
}

.section-header-group {
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    margin-bottom: 0.4rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #ffffff);
}

.section-subtext {
    font-size: 1rem;
    color: var(--text-secondary, #94a3b8);
    max-width: 650px;
    margin: 0;
}

/* Working Plans Grid */
.working-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.plan-phase-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
}

.plan-status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.status-progress {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-active {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-planned {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    color: var(--text-primary, #ffffff);
}

.plan-description {
    font-size: 0.92rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Progress Bar */
.plan-progress-wrapper {
    margin-bottom: 1.5rem;
}

.plan-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary, #94a3b8);
}

.progress-percent {
    color: #38bdf8;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

/* Milestones List */
.plan-milestones {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.milestones-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.6rem;
}

.milestones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.milestone-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

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

.milestone-check {
    color: #34d399;
    font-weight: 700;
}

.plan-footer {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

/* Filter Bar */
.projects-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #94a3b8);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}

/* Example Projects Grid */
.example-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.example-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.example-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.example-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.example-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.example-status {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-primary { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-info { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.example-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.3rem;
}

.example-category-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.9rem;
}

.example-summary {
    font-size: 0.92rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.example-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.example-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.highlight-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-primary, #cbd5e1);
}

.highlight-bullet {
    color: #f59e0b;
}

.example-actions {
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-top: 1.25rem;
}

.btn-example-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-example-primary:hover {
    background: #7dd3fc;
}

.btn-example-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-example-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CTA Banner */
.projects-cta-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 4rem 0 2rem;
    backdrop-filter: blur(20px);
}

.cta-banner-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text-content {
    max-width: 600px;
}

.cta-text-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #ffffff);
}

.cta-text-content p {
    font-size: 1rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    line-height: 1.6;
}

.cta-button-group {
    display: flex;
    gap: 1rem;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.75rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .projects-hero-title { font-size: 2.1rem; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .cta-button-group { width: 100%; justify-content: center; }
}
