/* === Installation Guide Styles === */

.guide-hero {
    background: var(--dark);
    padding: 140px 0 60px;
    color: var(--white);
}

.guide-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.guide-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
}

.guide-hero .breadcrumb a:hover {
    color: var(--white);
}

.guide-hero .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

.guide-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.guide-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
}

/* Meta bar */
.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 48px;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

.guide-meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.guide-meta-item .meta-label {
    color: var(--gray-400);
    font-weight: 400;
}

/* Tools & Materials */
.guide-tools-section {
    margin-bottom: 48px;
}

.guide-tools-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.guide-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.guide-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
}

.guide-tool svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Cable sizing table */
.guide-table-wrapper {
    margin-bottom: 48px;
}

.guide-table-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.guide-table thead {
    background: var(--dark);
    color: var(--white);
}

.guide-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.guide-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.guide-table tbody tr:last-child td {
    border-bottom: none;
}

.guide-table tbody tr:hover {
    background: var(--gray-50);
}

/* Steps */
.guide-steps {
    counter-reset: guide-step;
}

.guide-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
    counter-increment: guide-step;
}

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

.guide-step-content {
    order: 1;
}

.guide-step-image {
    order: 2;
}

.guide-step:nth-child(even) .guide-step-content {
    order: 2;
}

.guide-step:nth-child(even) .guide-step-image {
    order: 1;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.guide-step-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.guide-step-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 12px;
}

.guide-step-content ul {
    list-style: none;
    padding: 0;
}

.guide-step-content ul li {
    position: relative;
    padding-left: 24px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

.guide-step-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.guide-step-image img,
.guide-step-image .placeholder-img {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.guide-step-image img {
    height: 300px;
    object-fit: cover;
}

.placeholder-img {
    height: 300px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--gray-400);
    font-size: 14px;
}

/* Warning boxes */
.guide-warning {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guide-warning-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}

.guide-warning-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.guide-warning-danger {
    background: #fee2e2;
    border: 1px solid #ef4444;
}

.guide-warning p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    margin: 0;
}

.guide-warning strong {
    color: var(--dark);
}

/* CTA at bottom */
.guide-cta {
    text-align: center;
    padding: 60px 0;
}

.guide-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.guide-cta p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-hero {
        padding: 120px 0 48px;
    }

    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-meta {
        flex-direction: column;
        gap: 12px;
    }

    .guide-step {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .guide-step-content,
    .guide-step:nth-child(even) .guide-step-content {
        order: 1;
    }

    .guide-step-image,
    .guide-step:nth-child(even) .guide-step-image {
        order: 2;
    }

    .guide-tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}
