/* Phase Pages Styling */

/* ========================================
   Header
   ======================================== */

.phase-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

.phase-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.phase-logo img {
    height: 40px;
    width: auto;
}

.phase-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.phase-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    padding: 5px 0;
    transition: color 0.2s;
}

.phase-nav-link:hover {
    color: #0073ea;
}

/* ========================================
   Main Content
   ======================================== */

.phase-main {
    min-height: calc(100vh - 200px);
    background: #fafafa;
}

.phase-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========================================
   Breadcrumb
   ======================================== */

.phase-breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 25px;
}

.phase-breadcrumb a {
    color: #0073ea;
    text-decoration: none;
}

.phase-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   Phase Hero
   ======================================== */

.phase-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.phase-hero-icon img {
    width: 80px;
    height: 80px;
}

.phase-hero-content {
    flex: 1;
}

.phase-label {
    display: inline-block;
    font-size: 0.85em;
    color: #0073ea;
    font-weight: 600;
    margin-bottom: 5px;
}

.phase-title {
    font-size: clamp(1.5em, 4vw, 2em);
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.phase-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* ========================================
   Phase Intro
   ======================================== */

.phase-intro {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.phase-intro p {
    margin: 0 0 15px 0;
    color: #444;
}

.phase-intro p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Steps List
   ======================================== */

.phase-steps {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.phase-steps-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073ea;
}

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

.step-item {
    margin-bottom: 10px;
}

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

.step-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.step-link:hover {
    background: #e7f5ff;
    border-color: #0073ea;
    transform: translateX(5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0073ea;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-name {
    flex: 1;
    font-size: 1.05em;
}

.step-arrow {
    color: #0073ea;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.step-link:hover .step-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ========================================
   Phase Navigation
   ======================================== */

.phase-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.phase-nav-btn {
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    min-width: 180px;
}

.phase-nav-btn:hover {
    border-color: #0073ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,234,0.15);
}

.phase-nav-prev {
    align-items: flex-start;
}

.phase-nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-btn-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.nav-btn-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #0073ea;
}

/* ========================================
   Footer
   ======================================== */

.phase-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 25px 20px;
    margin-top: auto;
}

.phase-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #0073ea;
    text-decoration: none;
    font-size: 0.95em;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #666;
    font-size: 0.9em;
}

/* ========================================
   Phase Number Colors
   ======================================== */

.phase-number-1 .step-number,
.phase-number-1 .phase-steps-title {
    border-color: #28a745;
}
.phase-number-1 .step-number {
    background: #28a745;
}

.phase-number-2 .step-number,
.phase-number-2 .phase-steps-title {
    border-color: #0073ea;
}
.phase-number-2 .step-number {
    background: #0073ea;
}

.phase-number-3 .step-number,
.phase-number-3 .phase-steps-title {
    border-color: #6f42c1;
}
.phase-number-3 .step-number {
    background: #6f42c1;
}

.phase-number-4 .step-number,
.phase-number-4 .phase-steps-title {
    border-color: #fd7e14;
}
.phase-number-4 .step-number {
    background: #fd7e14;
}

.phase-number-5 .step-number,
.phase-number-5 .phase-steps-title {
    border-color: #dc3545;
}
.phase-number-5 .step-number {
    background: #dc3545;
}

.phase-number-6 .step-number,
.phase-number-6 .phase-steps-title {
    border-color: #20c997;
}
.phase-number-6 .step-number {
    background: #20c997;
}

/* ========================================
   Responsive: Tablets
   ======================================== */

@media (max-width: 768px) {
    .phase-header-inner {
        justify-content: center;
    }

    .phase-hero {
        flex-direction: column;
        text-align: center;
    }

    .phase-navigation {
        flex-direction: column;
    }

    .phase-nav-btn {
        align-items: center !important;
        text-align: center !important;
    }

    .step-link {
        padding: 12px 15px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.85em;
    }
}

/* ========================================
   Responsive: Mobile
   ======================================== */

@media (max-width: 480px) {
    .phase-container {
        padding: 20px 15px;
    }

    .phase-hero {
        padding: 20px;
    }

    .phase-hero-icon img {
        width: 60px;
        height: 60px;
    }

    .phase-intro,
    .phase-steps {
        padding: 20px;
    }

    .phase-nav {
        gap: 15px;
        font-size: 0.9em;
    }

    .step-name {
        font-size: 0.95em;
    }

    .phase-nav-btn {
        padding: 15px 20px;
        min-width: auto;
    }
}
