/**
 * Media Collections - Academic Styling
 * Responsive design with always-visible navigation
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
    line-height: 1.4;
    color: #212529;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(24px, 5vw, 32px);
}

h2 {
    font-size: clamp(20px, 4vw, 26px);
}

h3 {
    font-size: clamp(18px, 3.5vw, 22px);
}

h4 {
    font-size: clamp(16px, 3vw, 20px);
}

p {
    margin-bottom: 0.5rem;
}

a {
    color: #003d82;
    text-decoration: underline;
}

a:hover {
    color: #00264d;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #f0f0f0;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0;
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-title {
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
}

.site-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.site-title a:hover {
    color: #003d82;
}

/* Navigation - Always Visible */
.main-navigation {
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.nav-links li {
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #212529;
    background-color: transparent;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: #e9ecef;
    color: #003d82;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 0.85em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0;
}

.role-badge:hover {
    background-color: #c82333;
    color: #ffffff;
    text-decoration: none;
}

/* Search Container */
.search-container {
    width: 100%;
}

.search-form {
    display: flex;
    gap: 0.25rem;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    font-size: 16px;
    background-color: #ffffff;
}

.search-input:focus {
    outline: 2px solid #003d82;
    outline-offset: -2px;
    border-color: #003d82;
}

.search-button {
    padding: 6px 12px;
    background-color: #003d82;
    color: #ffffff;
    border: 1px solid #003d82;
    cursor: pointer;
    font-size: 16px;
    min-width: 70px;
}

.search-button:hover {
    background-color: #00264d;
    border-color: #00264d;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 10px;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 32px;
    min-width: 32px;
}

.button-primary {
    background-color: #003d82;
    color: #ffffff;
    border-color: #003d82;
}

.button-primary:hover {
    background-color: #00264d;
    border-color: #00264d;
    color: #ffffff;
}

.button-secondary {
    background-color: #ffffff;
    color: #003d82;
    border-color: #003d82;
}

.button-secondary:hover {
    background-color: #f0f0f0;
    color: #00264d;
}

.button-danger {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}

.button-danger:hover {
    background-color: #660000;
    border-color: #660000;
}

.button-link {
    color: #003d82;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.button-link:hover {
    color: #00264d;
}

.button-link-danger {
    color: #6c757d;
}

.button-link-danger:hover {
    color: #495057;
}

/* ===== COLLECTIONS GRID ===== */
.collections-container {
    margin-top: 0.75rem;
}

.collections-container.collections-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collections-container.collections-table {
    display: block;
}

.collections-container.collections-list .collections-tile-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collections-container.collections-list .collection-card {
    width: 100%;
    display: block;
    padding: 0.75rem;
}

.collections-container.collections-list .collection-card h3 {
    width: 100%;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.collections-container.collections-list .collection-card .collection-description {
    width: 100%;
    margin: 0 0 0.5rem 0;
}

.collections-container.collections-list .collection-card .collection-tags {
    width: 100%;
    margin: 0 0 0.5rem 0;
}

.collections-container.collections-list .collection-card .collection-meta {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
    font-size: 0.85rem;
}

.collections-list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.collections-list-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.collections-list-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000000;
    border-right: 1px solid #dee2e6;
}

.collections-list-table th:last-child {
    border-right: none;
}

.collections-list-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    vertical-align: top;
}

.collections-list-table td:last-child {
    border-right: none;
}

.collections-list-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.collections-list-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.collections-list-table tbody tr:hover {
    background-color: #e9ecef;
}

.collections-list-table tbody tr:last-child td {
    border-bottom: none;
}

.collections-list-table .collection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.collections-tile-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1rem;
    row-gap: 1.5rem;
}

@media (min-width: 768px) {
    .collections-tile-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .collections-tile-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1920px) {
    .collections-tile-view {
        grid-template-columns: repeat(4, 1fr);
    }
}

.collection-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
}

.collection-card:not(:first-child) {
    margin-top: 1rem;
}

.collection-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collection-card h3 {
    margin-bottom: 0.25rem;
}

.collection-card h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

.collection-card h3 a:hover {
    color: #003d82;
    text-decoration: underline;
}

.collection-description {
    color: #495057;
    margin-bottom: 0.5rem;
}

.collection-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    display: inline-block;
}

/* ===== TAGS ===== */
.collection-tags {
    margin: 0.25rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.collection-tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e9ecef;
    color: #003d82;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.collection-tag:hover {
    background-color: #003d82;
    color: #ffffff;
    border-color: #003d82;
}

.collection-meta-full .collection-tag {
    margin: 0 0.25rem;
}

/* ===== TAG AUTOCOMPLETE ===== */
.tag-suggestions {
    position: relative;
    display: none;
    margin-top: 0.5rem;
}

.tag-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-suggestion-item {
    padding: 4px 8px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
}

.tag-suggestion-item:last-child {
    border-bottom: none;
}

.tag-suggestion-item:hover,
.tag-suggestion-item.selected {
    background-color: #f0f0f0;
    color: #003d82;
}

/* ===== COLLECTION DETAIL ===== */
.collection-detail {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.collection-header h2 {
    margin-bottom: 0.25rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.collection-description-full {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-left: 3px solid #003d82;
    white-space: normal;
}

.collection-meta-full {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.collection-meta-full p {
    margin-bottom: 0.25rem;
}

/* ===== ITEMS ===== */
.items-section {
    margin-top: 0.75rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    width: 100%;
}

.items-list .item-wrapper:nth-child(even) {
    background-color: #f8f9fa;
}

.items-list .item-wrapper:nth-child(odd) {
    background-color: #ffffff;
}

.item-wrapper {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.item-wrapper:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.item-search-result {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.item-reorder-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.button-reorder {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    min-width: 2rem;
    text-align: center;
}

.button-reorder:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.button-reorder:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-display {
    margin-bottom: 0.5rem;
}

.item-display h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.item-display h4 {
    margin-bottom: 0.25rem;
}

.item-title {
    margin-top: 0.25rem;
    text-align: center;
}

.external-link {
    margin-top: 0.25rem;
    text-align: center;
}

.external-label {
    font-size: 0.9em;
    color: #6c757d;
}

.item-admin-actions {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-video video,
.item-audio audio {
    display: block;
    margin: 0.5rem auto;
}

.item-pdf iframe {
    display: block;
    margin: 0.5rem auto;
}

.item-image img {
    display: block;
    margin: 0.5rem auto;
}

.item-external-link-metadata {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 3px solid #003d82;
}

.item-external-link-metadata p {
    margin: 0;
    font-size: 0.95rem;
}

.item-external-link-metadata strong {
    color: #1a1a2e;
    margin-right: 0.5rem;
}

.item-external-link-metadata a {
    word-break: break-all;
    color: #003d82;
}

.icon {
    margin: 0 0.25rem;
}

/* ===== BACKUP LINKS ===== */
.backup-links {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 3px solid #003d82;
}

.backup-links h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #1a1a2e;
}

.backup-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.backup-link-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.backup-link-item:last-child {
    border-bottom: none;
}

.backup-link-item.expired-link {
    opacity: 0.6;
}

.backup-link-item a {
    color: #003d82;
    text-decoration: underline;
}

.backup-link-item.expired-link a {
    color: #6c757d;
    text-decoration: line-through;
}

.expired-label {
    color: #8b0000;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 0.5rem;
}

.backup-urls-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px solid #dee2e6;
}

.backup-urls-form {
    margin: 0.5rem 0;
}

.expired-row {
    background-color: #fff5f5;
    opacity: 0.8;
}

.expired-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #8b0000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.active-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #28a745;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== DEAD LINKS ===== */
.item-dead-link {
    background-color: #fff5f5;
    border-left: 3px solid #8b0000;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.dead-link-text {
    color: #6c757d;
    text-decoration: line-through;
}

.dead-label {
    color: #8b0000;
    font-weight: 600;
    font-size: 0.9em;
}

.prior-link-url {
    color: #6c757d;
    font-size: 0.9em;
    font-family: monospace;
    display: block;
    margin-top: 0.25rem;
    word-break: break-all;
}

.report-dead-link {
    display: inline;
    margin-left: 0.5rem;
}

.button-report-dead {
    font-size: 0.9em;
    color: #6c757d;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.button-report-dead:hover {
    color: #495057;
}

.stat-card-warning {
    background-color: #fffbf0;
    border-color: #d4a017;
}

.stat-card-warning h3 {
    color: #856404;
}

.primary-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #003d82;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.backup-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #6c757d;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== FORMS ===== */
.admin-form,
.login-form,
.search-form-large {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #212529;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="search"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    min-height: 32px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #003d82;
    outline-offset: -2px;
    border-color: #003d82;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.form-help-box {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-left: 3px solid #003d82;
}

.form-help-box h4 {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.form-help-box ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.form-help-box li {
    margin-bottom: 0.25rem;
}

.required {
    color: #8b0000;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ===== PROFILE PAGE ===== */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.profile-table th {
    text-align: left;
    padding: 0.25rem 0.125rem 0.25rem 0;
    font-weight: 600;
    vertical-align: top;
    white-space: nowrap;
    width: 1%;
}

.profile-table td {
    padding: 0.25rem 0 0.25rem 0.25rem;
    vertical-align: top;
}

/* ===== TABLES ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.admin-table thead {
    background-color: #f0f0f0;
}

.admin-table th {
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #dee2e6;
    color: #1a1a2e;
}

.admin-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e9ecef;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.admin-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.admin-table tbody tr:hover {
    background-color: #e9ecef;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.pagination-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #1a1a2e;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    border-radius: 0;
}

.pagination-link:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.pagination-link.pagination-disabled {
    color: #adb5bd;
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.pagination-info {
    padding: 0.5rem 1rem;
    color: #495057;
    font-size: 0.9em;
}

/* ===== MESSAGES ===== */
.error-message,
.warning-message,
.success-message {
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid;
}

.error-message {
    background-color: #fff5f5;
    border-color: #8b0000;
    color: #8b0000;
}

.warning-message {
    background-color: #fffbf0;
    border-color: #d4a017;
    color: #856404;
}

.success-message {
    background-color: #f0f9f0;
    border-color: #28a745;
    color: #155724;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

.success-message p {
    margin-bottom: 0;
}

/* ===== UTILITY ===== */
.empty-state {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.page-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.view-controls {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.view-toggle {
    padding: 4px 8px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-toggle:hover {
    background-color: #f0f0f0;
    border-color: #003d82;
}

.view-toggle.active {
    background-color: #003d82;
    color: #ffffff;
    border-color: #003d82;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-info {
    flex: 1;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-controls label {
    font-weight: 600;
}

.sort-controls select {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    min-height: 32px;
}

/* ===== ADMIN PAGES ===== */
.admin-dashboard,
.admin-form-page,
.admin-login,
.admin-settings {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.login-container {
    max-width: 400px;
    margin: 1rem auto;
}

.dashboard-stats {
    margin: 0.75rem 0;
}

.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    color: #003d82;
    margin-bottom: 0.25rem;
}

.dashboard-actions {
    margin: 0.75rem 0;
}

.action-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-section {
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #dee2e6;
}

.settings-description {
    margin: 0.5rem 0;
    color: #6c757d;
    font-style: italic;
}

.search-page {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.search-form-large {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-input-large {
    width: 100%;
    padding: 6px 10px;
    font-size: 16px;
    min-height: 36px;
}

.search-button-large {
    padding: 6px 16px;
    font-size: 16px;
    min-height: 36px;
}

.search-results-header {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-left: 3px solid #003d82;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-results-section {
    margin: 0.75rem 0;
}

.search-instructions {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f0f0f0;
    border-top: 2px solid #dee2e6;
    padding: 0.5rem 0;
    margin-top: 1rem;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE: TABLET (768px+) ===== */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .site-title {
        flex: 0 0 auto;
    }
    
    .main-navigation {
        flex: 1 1 auto;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .nav-links li {
        border-bottom: none;
        border-right: 1px solid #dee2e6;
        display: flex;
        align-items: center;
    }
    
    .nav-links li:last-child {
        border-right: none;
    }
    
    .search-container {
        flex: 1 1 100%;
        order: 3;
    }
    
    
    .page-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .collection-meta {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .search-form-large {
        flex-direction: row;
    }
    
    .search-input-large {
        flex: 1;
    }
}

/* ===== RESPONSIVE: DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .header-content {
        flex-wrap: nowrap;
    }
    
    .main-navigation {
        flex: 0 1 auto;
    }
    
    .nav-links {
        flex-wrap: nowrap;
    }
    
    .search-container {
        flex: 0 1 400px;
        order: 0;
    }
    
    
    .main-content {
        padding: 0.75rem 20px;
    }
    
    .page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===== RESPONSIVE: LARGE DESKTOP (1920px+) ===== */
@media (min-width: 1920px) {
    
    .main-content {
        padding: 0.75rem 30px;
    }
}

/* ===== HONEYPOT FIELD (Bot Protection) ===== */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .admin-actions,
    .item-admin-actions,
    .form-actions,
    .button {
        display: none;
    }
    
    body {
        background-color: #ffffff;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0;
    }
}

