/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 44px);
    background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%);
    padding: 0 32px 40px 32px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.welcome-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.welcome-illustration {
    width: 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-illustration svg {
    width: 280px;
    height: 200px;
    filter: drop-shadow(0 4px 12px rgba(107, 70, 193, 0.1));
}

.building-group {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.welcome-content {
    margin-bottom: 80px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 16px 0;
    line-height: 40px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6B7280;
    line-height: 24px;
    margin: 0;
    max-width: 280px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 311px;
}

/* Updated button styles for welcome screen */
.welcome-actions .btn-primary {
    background: #1E3A8A;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding: 16px 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.welcome-actions .btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.welcome-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.welcome-actions .btn-link {
    background: transparent;
    color: #1E3A8A;
    border: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.welcome-actions .btn-link:hover {
    color: #1E40AF;
    text-decoration: underline;
}

.welcome-actions .btn-link:active {
    color: #1E3A8A;
}

/* Remove old welcome-house styles */
.welcome-house,
.house-outline {
    display: none;
}

/* Onboarding Screens */
.onboarding-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 44px);
    padding: 40px 24px 24px;
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.onboarding-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.onboarding-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 300px;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-medium);
    transition: all 0.2s ease-in-out;
}

.pagination-dot.active {
    background: var(--primary-blue);
    width: 24px;
}

.onboarding-illustration {
    width: 280px;
    height: 200px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.path-illustration {
    position: relative;
    width: 200px;
    height: 120px;
}

.path-house {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    border-radius: var(--radius-lg);
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 80px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.path-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.path-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.onboarding-actions {
    padding-top: 24px;
}

/* Dashboard Screen */
.dashboard-screen {
    padding-bottom: 100px; /* Space for bottom nav */
}

.dashboard-header {
    padding: 20px 24px;
    background: var(--bg-primary);
}

.dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.greeting-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.greeting-name {
    color: var(--accent-orange);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.action-icon:hover {
    background: var(--bg-muted);
    transform: scale(1.05);
}

.dashboard-content {
    padding: 0 24px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.build-streak {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}

.streak-days {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.streak-day {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.streak-day.active {
    background: var(--secondary-blue);
    color: var(--text-white);
}

.streak-day.completed {
    background: var(--primary-blue);
    color: var(--text-white);
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.project-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    position: relative;
    overflow: hidden;
}

.project-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

.project-details {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-phase {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.quick-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tool-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    color: var(--primary-blue);
}

.tool-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.team-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}

.team-members {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.team-member {
    position: relative;
}

.team-more {
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pathway Screen */
.pathway-screen {
    padding-bottom: 100px;
}

.pathway-tabs {
    background: var(--bg-secondary);
    margin: 0 24px 24px;
    border-radius: var(--radius-lg);
    padding: 4px;
    display: flex;
}

.pathway-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pathway-tab.active {
    background: var(--bg-primary);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.phase-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin: 0 24px 24px;
    box-shadow: var(--shadow-sm);
}

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

.phase-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.phase-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.phase-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease-in-out;
}

.phase-toggle:hover {
    background: var(--bg-secondary);
}

.phase-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.phase-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.phase-stat-icon {
    font-size: 16px;
}

.phase-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
}

.pathway-steps {
    padding: 0 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.step-item:hover {
    background: var(--bg-secondary);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

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

.step-marker {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 2px solid var(--border-medium);
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
}

.step-marker.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.step-marker.completed {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.step-marker.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 24px;
}

/* Phase Detail Screens */
.phase-detail-screen {
    padding-bottom: 100px;
}

.phase-detail-header {
    padding: 20px 24px;
    background: var(--bg-primary);
}

.phase-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.phase-detail-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
}

.phase-detail-content {
    padding: 0 24px;
}

.phase-illustration {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.illustration-content {
    text-align: center;
    color: var(--text-secondary);
}

.illustration-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.phase-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.key-decisions {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}

.decisions-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.decision-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

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

.decision-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.decision-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.phase-navigation {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom));
    left: 24px;
    right: 24px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 390px) {
    .dashboard-content,
    .pathway-steps,
    .phase-detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .pathway-tabs,
    .phase-card {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .phase-navigation {
        left: 16px;
        right: 16px;
    }
}