/* Styling for MapCamDroid Help Manuals */

.help-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.help-breadcrumbs {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.help-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.help-breadcrumbs a:hover {
    color: #004499;
    text-decoration: underline;
}

h1.help-title, .help-container h1 {
    font-size: 2.2rem;
    color: #111111;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.help-container h2 {
    font-size: 1.6rem;
    color: #222222;
    margin-top: 35px;
    margin-bottom: 15px;
    border-left: 4px solid #0066cc;
    padding-left: 12px;
}

.help-container h3 {
    font-size: 1.25rem;
    color: #333333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.help-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

.help-container ul, .help-container ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.help-container li {
    margin-bottom: 8px;
}

/* Tables */
.help-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.help-table th, .help-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.help-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.help-table tr:last-child td {
    border-bottom: 0;
}

.help-table tr:nth-child(even) td {
    background-color: #fcfcfd;
}

.help-table tr:hover td {
    background-color: #f3f4f6;
}

/* Alert Boxes */
.help-alert {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.help-alert-important {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e3a8a;
}

.help-alert-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #78350f;
}

.help-alert-tip {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #14532d;
}

/* Index layout */
.help-index-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media(min-width: 600px) {
    .help-index-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.help-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #0066cc;
}

.help-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 8px;
}

.help-card-desc {
    font-size: 0.95rem;
    color: #666666;
    flex-grow: 1;
}

code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: #d11a2a;
}
