/* Night Vision Specific Styles */
:root {
    --nv-bg-color: #000000;
    --nv-text-primary: #ff0000;
    --nv-text-secondary: #cc0000;
    --nv-border-color: #550000;
    --nv-highlight: #ff3333;
    --nv-panel-bg: rgba(255, 0, 0, 0.05);
}

html[data-theme="day"] {
    --nv-bg-color: #f2f2f2;
    --nv-text-primary: #333333;
    --nv-text-secondary: #555555;
    --nv-border-color: #d1d1d1;
    --nv-highlight: #0056b3;
    --nv-panel-bg: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--nv-bg-color);
    color: var(--nv-text-primary);
    font-family: "Inter", "Roboto", "Segoe UI", -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#nv-app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Base Block Styles */
.nv-block {
    border: 1px solid var(--nv-border-color);
    border-radius: 12px;
    padding: 1.25rem;
    background-color: var(--nv-panel-bg);
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nv-block:hover {
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.1);
}

/* Header Specifics */
.nv-header {
    text-align: center;
    border-bottom-width: 3px;
    background: linear-gradient(180deg, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.nv-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.nv-header p {
    margin: 0;
    color: var(--nv-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Content Blocks */
.nv-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.nv-item:last-child {
    margin-bottom: 0;
}

.nv-item img {
    margin-left: auto;
    margin-right: auto;
}

.nv-content h2 {
    margin-top: 0;
    color: var(--nv-highlight);
    border-bottom: 1px solid var(--nv-border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Key-Value Data Display */
.nv-data {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.nv-data:last-child {
    margin-bottom: 0;
}

.nv-label {
    color: var(--nv-text-secondary);
}

.nv-value {
    font-weight: 600;
    text-align: right;
}

/* Lists */
.nv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nv-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(85, 0, 0, 0.5);
}

.nv-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nv-location {
    font-weight: 500;
}

.nv-condition {
    color: var(--nv-text-secondary);
}

/* Footer Specifcs */
.nv-footer {
    text-align: center;
    border-top-width: 3px;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding-top: 1rem;
    background: transparent;
    box-shadow: none;
}

.nv-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--nv-text-secondary);
}

/* Image & Link Handling for Night Vision & Responsiveness */
.nv-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    /* Red filter to ensure images don't ruin night vision */
    filter: grayscale(100%) sepia(100%) hue-rotate(315deg) saturate(500%) brightness(0.8);
    display: block;
}

.nv-link {
    color: var(--nv-highlight);
    text-decoration: none;
    border-bottom: 1px dotted var(--nv-border-color);
}

.nv-link:hover {
    border-bottom-style: solid;
}

.nv-caption {
    font-size: 0.85rem;
    color: var(--nv-text-secondary);
    display: inline-block;
    margin-top: 0.25rem;
}

.nv-toggle-btn {
    cursor: pointer;
    text-decoration: underline;
    user-select: none;
    transition: opacity 0.2s;
    background: transparent;
    border: none;
    color: var(--nv-text-secondary);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    padding: 0;
}

.nv-toggle-btn:hover {
    opacity: 0.8;
}

html[data-theme="day"] .nv-content img {
    filter: none;
}

.nv-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    margin-top: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.nv-scroll-row img {
    flex-shrink: 0;
    max-width: none;
}

.nv-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.nv-scroll-row::-webkit-scrollbar-thumb {
    background-color: var(--nv-border-color);
    border-radius: 4px;
}
