/* =============================================
   INSTALLATION GUIDE - PREMIUM STYLES
   ============================================= */

/* ---- Container Override ---- */
.guide-container {
    max-width: 560px;
}

/* ---- Back Link ---- */
.guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
}

.guide-back-link:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateX(-4px);
    color: var(--accent);
}

/* ---- Guide Card ---- */
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: fadeInUp 0.5s ease backwards;
}

.guide-card:nth-child(3) { animation-delay: 0.05s; }
.guide-card:nth-child(4) { animation-delay: 0.1s; }
.guide-card:nth-child(5) { animation-delay: 0.15s; }
.guide-card:nth-child(6) { animation-delay: 0.2s; }
.guide-card:nth-child(7) { animation-delay: 0.25s; }
.guide-card:nth-child(8) { animation-delay: 0.3s; }

/* ---- Card Header ---- */
.guide-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.guide-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

/* ---- Step Number ---- */
.guide-step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ---- Card Icon ---- */
.guide-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-card-icon.video-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.guide-card-icon.warning-icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

/* ---- Guide Description ---- */
.guide-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ---- Video Wrapper ---- */
.video-wrapper {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(6, 9, 24, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    aspect-ratio: 16/9;
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.video-placeholder svg {
    opacity: 0.4;
}

/* ---- Download Buttons ---- */
.guide-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 48px;
    border: none;
}

.guide-download-btn:not(.cert-btn) {
    background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.guide-download-btn:not(.cert-btn):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

.guide-download-btn.cert-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.guide-download-btn.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(34, 211, 238, 0.15) 100%);
}

/* ---- Substeps ---- */
.guide-substeps {
    margin-top: 0.5rem;
}

.guide-substeps h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guide-substep {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: rgba(6, 9, 24, 0.4);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.guide-substep:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.guide-substep:last-child {
    margin-bottom: 0;
}

.substep-num {
    width: 30px;
    height: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.substep-content {
    flex: 1;
    min-width: 0;
}

.substep-content strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

.substep-content p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ---- Highlighted Critical Step ---- */
.guide-substep.highlight-step {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(244, 63, 94, 0.25);
    position: relative;
}

.guide-substep.highlight-step:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.1);
}

.guide-substep.highlight-step .substep-content strong {
    color: var(--red);
}

.substep-num.critical {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--red);
    animation: criticalPulse 2s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
    50% { box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15); }
}

/* ---- Ninth child animation delay ---- */
.guide-card:nth-child(9) { animation-delay: 0.35s; }
.guide-card:nth-child(10) { animation-delay: 0.4s; }

/* ---- Warnings Card ---- */
.warnings-card {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(13, 18, 38, 0.9) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.warning-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(6, 9, 24, 0.5);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.warning-item:hover {
    border-color: rgba(245, 158, 11, 0.15);
    transform: translateX(4px);
}

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

.warning-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-badge.danger {
    background: rgba(244, 63, 94, 0.12);
    color: var(--red);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.warning-badge.caution {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.warning-badge.info {
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.warning-content {
    flex: 1;
    min-width: 0;
}

.warning-content strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 0.35rem;
}

.warning-content p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .guide-container {
        max-width: 100%;
    }

    .guide-card {
        padding: 1.15rem;
        border-radius: 16px;
    }

    .guide-card-header h2 {
        font-size: 0.92rem;
    }

    .guide-substep {
        padding: 0.6rem 0.7rem;
    }

    .warning-item {
        padding: 0.85rem;
    }

    .guide-download-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}
