/* ============================================
   Help Center - Styles
   Dark theme extending policy.css
   ============================================ */

/* ---- Breadcrumb ---- */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #999;
}

.help-breadcrumb a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.2s;
}

.help-breadcrumb a:hover {
    color: #ffe066;
    text-decoration: underline;
}

.help-breadcrumb .separator {
    color: #666;
}

/* ---- Feature Cards (Help Index) ---- */
.help-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.help-feature-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.help-feature-card:hover {
    transform: translateY(-4px);
    border-color: #ffcc00;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15);
}

.help-feature-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.help-feature-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.help-feature-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.help-feature-card h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.help-feature-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-feature-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffcc00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.help-feature-card .card-link:hover {
    color: #ffe066;
}

.help-feature-card .coming-soon {
    display: inline-block;
    background: #444;
    color: #999;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---- Section Styles ---- */
.help-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.help-section:last-child {
    border-bottom: none;
}

.help-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffcc00;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.help-section-title .icon {
    font-size: 1.3rem;
}

.help-subsection-title {
    color: #66ccff;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid #66ccff;
}

/* ---- Screenshot Display ---- */
.help-screenshot {
    margin: 1.5rem 0;
    text-align: center;
}

.help-screenshot img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.help-screenshot img:hover {
    transform: scale(1.02);
}

.help-screenshot .caption {
    display: block;
    margin-top: 0.75rem;
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* ---- Step Guide ---- */
.help-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.help-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    line-height: 1.6;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 204, 0, 0.3);
}

/* ---- Info / Warning / Tip Boxes ---- */
.help-box {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    line-height: 1.6;
}

.help-box-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
    color: #ffcc80;
}

.help-box-tip {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    color: #a5d6a7;
}

.help-box-info {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196f3;
    color: #90caf9;
}

.help-box .box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Tables ---- */
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.help-table th,
.help-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.help-table th {
    background: #1a1a1a;
    color: #ffcc00;
    font-weight: 600;
    white-space: nowrap;
}

.help-table td {
    color: #e0e0e0;
}

.help-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ---- Back / Navigation Links ---- */
.help-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 1rem;
}

.help-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #ffcc00;
    border-radius: 6px;
    transition: all 0.2s;
}

.help-nav-link:hover {
    background: #ffcc00;
    color: #000;
}

/* ---- Flow Diagram ---- */
.help-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 8px;
}

.help-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
    text-align: center;
    min-width: 90px;
    flex: 1 1 0;
}

.help-flow-item .flow-icon {
    font-size: 1.5rem;
}

.help-flow-item .flow-label {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 600;
}

.help-flow-arrow {
    color: #ffcc00;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Checklist ---- */
.help-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-checklist li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: #e0e0e0;
    line-height: 1.6;
}

.help-checklist li::before {
    content: '\2610';
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-size: 1.1rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .help-features-grid {
        grid-template-columns: 1fr;
    }

    .help-flow {
        flex-direction: column;
    }

    .help-flow-arrow {
        transform: rotate(90deg);
    }

    .help-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .help-nav-link {
        justify-content: center;
    }

    .help-section-title {
        font-size: 1.25rem;
    }

    .help-screenshot img {
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .help-feature-card {
        padding: 1.25rem;
    }

    .help-steps li {
        padding-left: 3rem;
    }

    .help-table {
        font-size: 0.85rem;
    }

    .help-table th,
    .help-table td {
        padding: 0.5rem;
    }
}
