/* UNYKORN Attestation Ledger - Refusal-Aligned Styling */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0A0A0A;
    color: #E0E0E0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

code, pre, .metric-value {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header */
header {
    border-bottom: 1px solid #333333;
    padding-bottom: 40px;
    margin-bottom: 60px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.subtitle {
    font-size: 18px;
    color: #B0B0B0;
    margin-bottom: 16px;
}

.description {
    font-size: 15px;
    color: #808080;
    line-height: 1.8;
}

/* Section Headers */
h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00FF41;
    margin-bottom: 24px;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 8px;
}

/* Hero Section - Current State */
.hero {
    margin-bottom: 60px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #808080;
}

.metric-value {
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* Packets Table */
.packets {
    margin-bottom: 60px;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #333333;
    border-radius: 4px;
    margin-top: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background-color: #121212;
    border-bottom: 2px solid #333333;
}

th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: #B0B0B0;
}

tbody tr {
    border-bottom: 1px solid #1A1A1A;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #0F0F0F;
}

td {
    padding: 16px;
    color: #E0E0E0;
}

td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.cid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #808080;
}

.actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 6px 12px;
    border: 1px solid #333333;
    background-color: transparent;
    color: #E0E0E0;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    border-color: #00FF41;
    color: #00FF41;
}

.btn-primary {
    background-color: #00FF41;
    color: #0A0A0A;
    border-color: #00FF41;
}

.btn-primary:hover {
    background-color: #00DD35;
    border-color: #00DD35;
}

/* Verification Section */
.verification {
    margin-bottom: 60px;
    background-color: #0F0F0F;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 40px;
}

.instructions h3 {
    font-size: 15px;
    color: #B0B0B0;
    margin-bottom: 12px;
    margin-top: 24px;
    font-weight: 500;
}

.instructions h3:first-child {
    margin-top: 0;
}

pre {
    background-color: #000000;
    border: 1px solid #1A1A1A;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

pre code {
    font-size: 13px;
    color: #00FF41;
    line-height: 1.6;
}

.output code {
    color: #E0E0E0;
}

.emphasis {
    font-size: 16px;
    font-weight: 500;
    color: #00FF41;
    margin-top: 24px;
}

/* Footer - Constitutional Reference */
footer {
    border-top: 1px solid #333333;
    padding-top: 40px;
}

.footer-section {
    margin-bottom: 32px;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #808080;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.footer-section p {
    font-size: 14px;
    color: #B0B0B0;
    margin-bottom: 8px;
}

.footer-section code {
    color: #00FF41;
    font-size: 13px;
    background-color: #0F0F0F;
    padding: 2px 6px;
    border-radius: 3px;
}

.hash {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    h1 {
        font-size: 24px;
    }

    .metrics {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 12px 8px;
    }

    .actions {
        flex-direction: column;
        gap: 8px;
    }

    .verification {
        padding: 24px;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid #00FF41;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: #00FF41;
    color: #0A0A0A;
}
