/* ========================================
   AltStore PAL Install Guide Styles
   ======================================== */

/* Header */
.install-header {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-start;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--monos-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* Progress Indicator */
.install-progress {
    padding: 40px 0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--monos-card-bg);
    border: 2px solid var(--monos-card-stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--monos-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--monos-accent);
    border-color: var(--monos-accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(45, 184, 168, 0.4);
}

.progress-step.completed .step-number {
    background: var(--monos-accent);
    border-color: var(--monos-accent);
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: var(--monos-muted);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--monos-ink);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--monos-card-stroke);
    margin: 0 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .install-progress {
        padding: 30px 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-line {
        width: 30px;
        margin: 0 8px;
        margin-bottom: 22px;
    }

    .step-label {
        font-size: 10px;
    }
}

/* Main Content */
.install-content {
    padding: 20px 0 60px;
}

.install-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--monos-ink);
    animation: fadeInUp 0.5s ease-out;
}

.install-subtitle {
    text-align: center;
    color: var(--monos-muted);
    font-size: 15px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

/* Requirements List */
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 48px;
}

.requirement-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--monos-card-bg);
    border: 1px solid var(--monos-card-stroke);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.5s ease-out both;
}

.requirement-card:nth-child(1) {
    animation-delay: 0.2s;
}

.requirement-card:nth-child(2) {
    animation-delay: 0.3s;
}

.requirement-card:nth-child(3) {
    animation-delay: 0.4s;
}

.requirement-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--monos-accent), rgba(45, 184, 168, 0.8));
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(45, 184, 168, 0.25);
}

.requirement-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.requirement-content {
    flex: 1;
}

.requirement-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--monos-ink);
    margin-bottom: 4px;
}

.requirement-content p {
    font-size: 13px;
    color: var(--monos-muted);
    line-height: 1.4;
}

.requirement-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 184, 168, 0.15);
    border-radius: 50%;
}

.requirement-check svg {
    width: 16px;
    height: 16px;
    color: var(--monos-accent);
}

/* Navigation */
.install-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.next-btn {
    background: linear-gradient(135deg, var(--monos-accent), rgba(45, 184, 168, 0.9));
    color: #fff;
    flex: 1;
    box-shadow: 0 8px 30px rgba(45, 184, 168, 0.35);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(45, 184, 168, 0.45);
}

.prev-btn {
    background: var(--monos-card-bg);
    border: 1px solid var(--monos-card-stroke);
    color: var(--monos-ink);
}

.prev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--monos-shadow);
}

/* Footer adjustments */
.install-content+.footer {
    border-top: 1px solid var(--monos-card-stroke);
    padding: 30px 0;
}

.install-content+.footer .copyright {
    text-align: center;
    font-size: 12px;
    color: var(--monos-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .install-title {
        font-size: 28px;
    }

    .install-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .nav-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .progress-line {
        width: 30px;
    }

    .step-label {
        font-size: 10px;
    }

    .requirement-card {
        padding: 16px 18px;
    }

    .requirement-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
    }

    .requirement-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .instruction-card {
        padding: 16px;
        gap: 12px;
    }

    .instruction-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
    }

    .screenshot-container {
        margin-bottom: 32px;
    }
}

/* Step Instructions */
.step-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 32px;
}

.instruction-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--monos-card-bg);
    border: 1px solid var(--monos-card-stroke);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.5s ease-out both;
}

.instruction-card:nth-child(1) {
    animation-delay: 0.2s;
}

.instruction-card:nth-child(2) {
    animation-delay: 0.3s;
}

.instruction-card:nth-child(3) {
    animation-delay: 0.4s;
}

.instruction-card:nth-child(4) {
    animation-delay: 0.5s;
}

.instruction-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--monos-accent), rgba(45, 184, 168, 0.8));
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 184, 168, 0.3);
}

.instruction-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--monos-ink);
    margin-bottom: 6px;
}

.instruction-content p {
    font-size: 13px;
    color: var(--monos-muted);
    line-height: 1.5;
}

.inline-link {
    color: var(--monos-accent);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

/* Screenshot */
.screenshot-container {
    max-width: 280px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto 40px;
    max-width: 900px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.screenshot-item {
    width: 100%;
}

.screenshot {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--monos-shadow), 0 0 0 1px var(--monos-card-stroke);
}

/* Completed step styling */
.progress-step.completed .step-number svg {
    width: 18px;
    height: 18px;
}

.progress-line.completed {
    background: var(--monos-accent);
}