/* ============================================================================
   OP UTILITY PAGE — op-utility.css
   ============================================================================ */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.op-hero { padding: 140px 0 70px; }

/* ── Downloads ──────────────────────────────────────────────────────────── */
.op-downloads { padding: 100px 0; background: #fff; }

.op-dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 56px;
}

.op-dl-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.op-dl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}

.op-dl-card:first-child:hover { border-color: #0078d4; }
.op-dl-card:last-child:hover  { border-color: #374151; }

.op-dl-header { display: flex; align-items: center; gap: 16px; }

.op-dl-osicon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.op-dl-win   { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #0078d4; }
.op-dl-linux { background: linear-gradient(135deg, #1f2937, #374151); color: #e5e7eb; }

.op-dl-header h3    { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 3px; }
.op-dl-meta         { font-size: 13px; color: #9ca3af; font-weight: 500; }
.op-dl-desc         { font-size: 14.5px; color: #6b7280; line-height: 1.65; }

.op-dl-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.op-dl-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.op-dl-features li i { color: #10b981; font-size: 12px; flex-shrink: 0; }

/* VirusTotal Badge */
.vt-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vt-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.vt-link:hover .vt-label { text-decoration: underline; }

.vt-score {
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.vt-label { font-size: 13px; font-weight: 600; color: #15803d; }
.vt-label i { margin-right: 5px; }

.vt-hash {
    font-size: 10.5px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Download Buttons */
.op-dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: auto;
}

.op-dl-btn:hover { opacity: 0.92; transform: scale(1.02); }
.op-dl-btn i { font-size: 18px; margin-bottom: 2px; }

.op-dl-sub { font-size: 11px; font-weight: 500; opacity: 0.8; }

.op-dl-btn-win   { background: linear-gradient(135deg, #0078d4, #005a9e); }
.op-dl-btn-linux { background: linear-gradient(135deg, #1f2937, #374151); }

.op-dl-note {
    margin-top: 36px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1e40af;
}

.op-dl-note i { color: #3b82f6; margin-top: 2px; flex-shrink: 0; }
.op-dl-note a { color: #1d4ed8; font-weight: 700; text-decoration: none; }
.op-dl-note a:hover { text-decoration: underline; }

/* ── Installation ───────────────────────────────────────────────────────── */
.op-install { padding: 100px 0; background: #f9fafb; }

.op-tabs {
    display: flex;
    gap: 8px;
    margin-top: 48px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.op-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.op-tab:hover { color: var(--navy); }
.op-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.op-tab-content { display: none; margin-top: 40px; }
.op-tab-content.active { display: block; }

.op-steps { display: flex; flex-direction: column; gap: 0; }

.op-step {
    display: flex;
    gap: 24px;
    padding-bottom: 36px;
    position: relative;
}

.op-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.op-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.op-step-body { flex: 1; padding-top: 6px; }
.op-step-body h4 { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.op-step-body p  { font-size: 14.5px; color: #6b7280; line-height: 1.65; margin-bottom: 14px; }

/* Code blocks */
.code-block {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.code-label {
    background: #1e293b;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block pre code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre;
}

/* ── Configuration ──────────────────────────────────────────────────────── */
.op-config { padding: 80px 0; background: #fff; }

.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.config-card {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
}

.config-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-card h4 i { color: var(--gold); }
.config-card p { font-size: 14px; color: #6b7280; line-height: 1.65; }
.config-card code { background: #e5e7eb; padding: 1px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 12.5px; color: #374151; }

.config-table { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.config-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.config-os { font-size: 13px; font-weight: 600; color: #374151; min-width: 80px; display: flex; align-items: center; gap: 6px; }
.config-row code { background: #1f2937; color: #e2e8f0; padding: 3px 8px; border-radius: 5px; font-size: 12px; }

/* ── API Section ────────────────────────────────────────────────────────── */
.op-api { padding: 100px 0 0; background: #f9fafb; }

.api-flow-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 40px;
}

.api-flow-step { display: flex; align-items: center; gap: 12px; padding: 6px 10px; }

.api-flow-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-flow-text { display: flex; flex-direction: column; }
.api-flow-text strong { font-size: 13px; font-weight: 700; color: #111827; font-family: 'Courier New', monospace; }
.api-flow-text span   { font-size: 11.5px; color: #9ca3af; }

.api-flow-arrow { color: var(--gold); opacity: 0.5; font-size: 13px; padding: 0 4px; }

.swagger-wrapper { background: #fafafa; margin-top: 40px; }
.swagger-wrapper .swagger-ui .topbar { display: none !important; }
.swagger-wrapper .swagger-ui .info   { display: none !important; }

.swagger-wrapper .swagger-ui .opblock-tag {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
}

.swagger-wrapper .swagger-ui .opblock {
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    margin: 6px 0 !important;
}

.swagger-wrapper .swagger-ui .opblock.opblock-post {
    background: rgba(30,64,175,0.04) !important;
    border-color: rgba(30,64,175,0.2) !important;
}

.swagger-wrapper .swagger-ui .opblock.opblock-get {
    background: rgba(16,185,129,0.04) !important;
    border-color: rgba(16,185,129,0.2) !important;
}

.swagger-wrapper .swagger-ui .opblock.opblock-post .opblock-summary-method {
    background: var(--navy) !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.swagger-wrapper .swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: #059669 !important;
    border-radius: 6px !important;
}

.swagger-wrapper .swagger-ui .opblock-summary-path {
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.swagger-wrapper .swagger-ui .scheme-container {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}

/* ── Error Reference ────────────────────────────────────────────────────── */
.op-errors { padding: 100px 0; background: #fff; }

.error-response-example {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin: 36px 0 32px;
    max-width: 400px;
}

.error-response-example pre {
    margin: 0;
    padding: 16px;
}

.error-response-example pre code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.7;
}

.error-table-wrapper { overflow-x: auto; }

.error-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 60px;
}

.error-table thead tr {
    background: #1e293b;
    color: #f1f5f9;
}

.error-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.error-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.error-table tbody tr:hover { background: #fafafa; }

.error-table td {
    padding: 13px 16px;
    color: #374151;
    vertical-align: top;
    line-height: 1.5;
}

.error-table td code {
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #374151;
}

.err-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.err-4xx  { background: #fef3c7; color: #92400e; }
.err-402  { background: #fee2e2; color: #991b1b; }
.err-5xx  { background: #fee2e2; color: #991b1b; }

/* ── Coordinate System ──────────────────────────────────────────────────── */
.coord-section {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px;
}

.coord-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coord-section h3 i { color: var(--gold); }
.coord-section p    { font-size: 14.5px; color: #6b7280; line-height: 1.65; margin-bottom: 20px; }

.coord-table-wrapper { overflow-x: auto; }

.coord-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.coord-table thead tr { background: #1e293b; color: #f1f5f9; }

.coord-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coord-table tbody tr { border-bottom: 1px solid #e5e7eb; }
.coord-table tbody tr:last-child { border-bottom: none; }

.coord-table td {
    padding: 12px 16px;
    color: #374151;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.coord-table td:first-child { font-family: 'Inter', sans-serif; font-weight: 600; color: #111827; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .op-dl-grid    { grid-template-columns: 1fr; }
    .config-grid   { grid-template-columns: 1fr; }
    .api-flow-bar  { flex-direction: column; align-items: flex-start; }
    .api-flow-arrow { transform: rotate(90deg); margin-left: 18px; }
    .op-step       { flex-direction: row; }
}

/* ── PFX-only warning ───────────────────────────────────────────────────── */
.op-dl-warning {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #9a3412;
    margin-top: 36px;
}

.op-dl-warning i {
    color: #ea580c;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.op-dl-warning strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.op-dl-warning code   { background: #fed7aa; padding: 1px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 12.5px; color: #7c2d12; }
.op-dl-warning a      { color: #c2410c; font-weight: 700; text-decoration: none; }
.op-dl-warning a:hover { text-decoration: underline; }

/* ── USB not supported icon ─────────────────────────────────────────────── */
.op-no { color: #ef4444 !important; }