@import url("wbtooltable.css");

/* =============================================
   WB Reports Helper Page Custom Styles
   ============================================= */

/* Usage instructions feed styling */
.usage-container {
    margin: 2.5rem 0;
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--lp-card-shadow);
}

.usage-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.instruction-block {
    animation: fadeIn 0.4s ease;
}

.instruction-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lp-card-border), transparent);
    margin: 0.5rem 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Figures & Captions */
figure {
    margin: 2.5rem auto;
    max-width: 850px;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--lp-card-border);
    box-shadow: var(--lp-card-shadow);
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

figure img:hover {
    transform: scale(1.005);
    border-color: var(--lp-card-hover-border);
}

figure img.screenshot-popup {
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

figure img.screenshot-large {
    max-width: 750px;
    margin: 0 auto;
    display: block;
}

figcaption {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--lp-text-muted);
}

/* Custom list adjustments for instructions */
.instruction-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.instruction-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.instruction-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp-accent-light);
    font-weight: bold;
}

/* Numbered instruction steps */
.step-list {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: var(--lp-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* GitHub Alert style formatting */
.gh-alert {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.02);
}

.gh-alert.important {
    border-left-color: var(--lp-accent);
    background: rgba(108, 92, 231, 0.05);
}

.gh-alert.warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.gh-alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-alert.important .gh-alert-title {
    color: var(--lp-accent-light);
}

.gh-alert.warning .gh-alert-title {
    color: #f39c12;
}

/* Lightbox overlay custom alignment */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* Современный стиль для обычных текстовых ссылок */
.landing-section a:not(.hero-cta-primary):not(.hero-cta-secondary):not(.cta-button):not(.modern-btn) {
    color: var(--lp-accent-light);
    text-decoration: none;
    border-bottom: 1px dashed rgba(203, 17, 171, 0.4);
    transition: all 0.2s ease;
}

.landing-section a:not(.hero-cta-primary):not(.hero-cta-secondary):not(.cta-button):not(.modern-btn):hover {
    color: #fff;
    border-bottom-color: #fff;
    text-decoration: none;
}
