/* ==========================================================================
   PROJECTS PAGE STYLES
   Hub page template with development roadmap and subdomain strategy
   ========================================================================== */

/* Site title position for projects page on mobile */
@media (max-width: 768px) {
    .page-template-page-projects .site-title {
        top: 20px !important;
        left: 20px !important;
        position: fixed !important;
    }
}

/* Crisp typography overrides for projects content */
.projects-intro h3,
.projects-intro h2,
.project-concepts h4,
.project-concept-card h4,
.page-template-page-projects .dashboard-content h3,
.page-template-page-projects .dashboard-content h2,
.projects-content h3,
.projects-content h2 {
    text-shadow: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.page-template-page-projects .projects-main,
.dashboard-section .projects-main {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    padding: 40px !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.projects-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-template-page-projects .tech-specs,
.page-template-page-projects .projects-status,
.dashboard-section .tech-specs,
.dashboard-section .projects-status {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    padding: 30px !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   PROJECT CONCEPT CARDS
   ========================================================================== */

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box;
}

.project-concept-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.project-concept-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.concept-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.concept-status {
    font-size: 0.75em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    top: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.concept-tech {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* Hide legacy numbered concept elements if present */
.span-concept,
div.span-concept,
.project-concept-card .span-concept {
    display: none !important;
}

.project-concept-card [class*="concept"]:not(.concept-status):not(.concept-header):not(.concept-tech) {
    position: static !important;
    display: none !important;
}

/* ==========================================================================
   DEVELOPMENT TIMELINE
   ========================================================================== */

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.timeline-phase {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.phase-header h4 {
    margin: 0;
    color: white;
    font-size: 1.2em;
}

.phase-status {
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-status.active {
    background: rgba(46, 204, 113, 0.8);
    color: white;
}

.phase-status.planned {
    background: rgba(52, 152, 219, 0.8);
    color: white;
}

.phase-status.future {
    background: rgba(155, 89, 182, 0.8);
    color: white;
}

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

.phase-tasks li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.4;
}

/* ==========================================================================
   TECH SPECS + STATUS
   ========================================================================== */

.tech-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-specs li {
    margin-bottom: 12px;
    font-size: 0.95em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
}

.tech-specs li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tech-specs strong {
    color: white;
    font-weight: 600;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-name {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.status-progress {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.status-progress.active {
    background: rgba(46, 204, 113, 0.8);
    color: white;
}

.status-progress.planning {
    background: rgba(52, 152, 219, 0.8);
    color: white;
}

.status-progress.future {
    background: rgba(155, 89, 182, 0.8);
    color: white;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (CLEAN STACK)
   ========================================================================== */

@media (max-width: 1200px) {
    .projects-grid {
        gap: 32px;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main {
        padding: 32px !important;
    }

    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        padding: 24px !important;
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .projects-sidebar {
        gap: 16px;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main,
    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        border-radius: 18px !important;
        padding: 22px !important;
    }

    .concepts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    body.page-template-page-projects .dashboard-content {
        padding: 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.page-template-page-projects .dashboard-section {
        padding: 20px 14px !important;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main {
        padding: 20px !important;
        border-radius: 16px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .concepts-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin: 16px 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .project-concept-card {
        padding: 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .concept-header,
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    body.page-template-page-projects .dashboard-content {
        padding: 8px !important;
    }

    body.page-template-page-projects .dashboard-section {
        padding: 16px 12px !important;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main,
    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .phase-tasks li,
    .tech-specs li,
    .status-name {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .concept-status {
        font-size: 0.68em;
        padding: 3px 8px;
    }
}

@media (max-width: 400px) {
    body.page-template-page-projects .dashboard-content {
        padding: 6px !important;
    }

    body.page-template-page-projects .dashboard-section {
        padding: 14px 10px !important;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main,
    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .project-concept-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .concept-status {
        font-size: 0.62em;
        padding: 2px 6px;
        white-space: normal;
    }
}

@media (max-width: 320px) {
    body.page-template-page-projects .dashboard-content {
        padding: 4px !important;
    }

    body.page-template-page-projects .dashboard-section {
        padding: 12px 9px !important;
    }

    .page-template-page-projects .projects-main,
    .dashboard-section .projects-main,
    .page-template-page-projects .tech-specs,
    .page-template-page-projects .projects-status,
    .dashboard-section .tech-specs,
    .dashboard-section .projects-status {
        padding: 12px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .project-concept-card {
        padding: 10px !important;
        border-radius: 9px !important;
        overflow: visible !important;
    }

    .concepts-grid,
    .project-concepts {
        overflow: visible !important;
        gap: 8px !important;
    }

    .concept-header h4 {
        font-size: 0.88em !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .concept-status {
        white-space: normal !important;
        font-size: 0.58em !important;
        line-height: 1.2 !important;
        padding: 2px 4px !important;
    }

    .project-concept-card p,
    .project-concept-card li,
    .phase-tasks li,
    .tech-specs li,
    .status-name {
        font-size: 0.84em !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* Add spacing above Development Roadmap title */
.development-timeline h3 {
    margin-top: 20px !important;
    padding-top: 8px;
}