/**
 * VIGOR Page-Specific Styles
 *
 * Styles for public-facing pages: home, search, item-detail, login,
 * profile, consent, error pages, bookmarks, change-password.
 *
 * Loaded globally via header.php (after components.css, before responsive.css).
 */

/* ==========================================================================
   HOME PAGE
   ========================================================================== */

.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-section {
    text-align: center;
    margin-bottom: 48px;
}

.intro-section h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--gu-dunkelgrau);
    margin-bottom: 24px;
}

.home-page .search-box {
    max-width: 600px;
    margin: 0 auto;
}

.home-page .search-box form {
    display: flex;
    gap: 8px;
}

.home-page .search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gu-sandgrau);
    border-radius: 8px;
    font-size: 1rem;
}

.home-page .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.home-page .search-box button {
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.home-page .search-box button:hover {
    background: var(--primary-dark);
}

.items-section {
    margin-bottom: 48px;
}

.items-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gu-sandgrau);
}

.items-section .section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */

.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-page h1 {
    margin-bottom: 24px;
}

.filters-bar {
    background: var(--light-bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--gu-dunkelgrau);
    font-weight: 500;
}

.filter-search {
    flex: 1;
    min-width: 200px;
}

.filter-input {
    padding: 10px 14px;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 97, 143, 0.1);
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gu-sandgrau);
}

.results-info {
    color: var(--gu-dunkelgrau);
}

.filter-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--gu-sandgrau);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 8px;
}

.no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--light-bg);
    border-radius: 12px;
}

.no-results h3 {
    color: var(--gu-dunkelgrau);
    margin-bottom: 16px;
}

.no-results ul {
    list-style: none;
    padding: 0;
    color: #6c757d;
}

.no-results li {
    margin: 8px 0;
}

/* Bookmark button on cards/rows (shared: home, search, item-detail) */
.card-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, transform 0.15s;
    margin-left: auto;
}
.card-bookmark-btn:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}
.card-bookmark-btn.bookmarked {
    color: var(--primary-color);
}
.card-bookmark-btn.saving {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   ITEM DETAIL PAGE
   ========================================================================== */

.item-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    color: var(--gu-dunkelgrau);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Hero Card */
.hero-card {
    padding: 0;
    overflow: hidden;
}

.hero-top {
    display: flex;
    gap: 24px;
}

.hero-image {
    width: 280px;
    min-height: 180px;
    max-height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-image--logo {
    object-fit: contain;
    background: var(--light-bg);
    padding: 16px;
}

.hero-abstract {
    flex: 1;
    padding: 20px 24px 20px 0;
    color: var(--gu-dunkelgrau);
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
}

.hero-abstract p { margin: 0; }

.hero-bottom { padding: 24px; }

.hero-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-title-row h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    flex: 1;
    min-width: 200px;
}

.hero-description {
    color: var(--gu-dunkelgrau);
    line-height: 1.7;
}

.hero-description p { margin: 0; }

.meta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.badge-duration { background: #fed7aa; color: #7c2d12; }
.badge-resources { background: #e9d5ff; color: #6b21a8; }
.badge-resources i { margin-right: 4px; }

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Media Card */
.media-card h2 { margin: 0 0 16px 0; font-size: 1.25rem; }

/* Learning Unit Launcher */
.learning-unit-card h2 { margin: 0 0 16px 0; font-size: 1.25rem; }

.learning-unit-launcher {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
    border-radius: 8px;
}

.learning-unit-launch-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 2rem 3rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 97, 143, 0.2);
}

.learning-unit-launch-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 143, 0.3);
}

.learning-unit-launch-btn:hover .launch-text,
.learning-unit-launch-btn:hover .launch-hint { color: white; }

.launch-icon { font-size: 3rem; }
.launch-text { font-size: 1.25rem; font-weight: 600; color: var(--primary-color); }
.launch-hint { font-size: 0.85rem; color: #6c757d; }

.learning-unit-actions {
    padding: 1rem 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.lu-download-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 280px;
}

.lu-download-hint {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b7280;
}

.learning-unit-download {
    padding: 2rem 24px;
    text-align: center;
}

/* LU Fullscreen Modal */
.lu-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #1a1a2e;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.lu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #16213e;
    color: white;
    flex-shrink: 0;
}

.lu-modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lu-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lu-modal-close:hover { background: #e74c3c; }

.lu-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.lu-modal-body iframe {
    width: 100%; height: 100%;
    border: none;
    background: white;
}

.lu-modal-loading {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: white;
    gap: 1rem;
}

.loading-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Link Card */
.link-card {
    text-align: center;
    background: linear-gradient(135deg, #ebf8ff 0%, #e0e7ff 100%);
}

.link-card h2 { margin: 0 0 16px 0; }

.btn-large { padding: 16px 32px; font-size: 1.1rem; }

.link-url {
    margin-top: 12px;
    color: #6c757d;
    word-break: break-all;
}

/* Access Denied — matches embed/video.php inline styles exactly */
.access-denied-card {
    background: linear-gradient(135deg, #00618f 0%, #004a6f 100%);
    border: none;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.access-denied-card .access-denied-inner {
    background: white;
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.access-denied-card .access-denied-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color, #00618f);
}

.access-denied-card h2 {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0 0 10px;
}

.access-denied-reason {
    font-size: 14px;
    color: var(--gu-dunkelgrau, #4d4b46);
    line-height: 1.6;
    margin: 0 0 24px;
}

.access-denied-reason small {
    color: #6c757d;
}

.access-denied-card .access-denied-actions {
    margin-bottom: 0;
}

.access-denied-card .access-denied-actions .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color, #00618f);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.access-denied-card .access-denied-actions .btn:hover {
    background: #5a6fd6;
}

.access-denied-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 16px;
    line-height: 1.5;
}

.access-denied-hint a {
    color: #00618f;
    text-decoration: none;
}

.access-denied-hint a:hover {
    text-decoration: underline;
}

.access-denied-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gu-sandgrau, #e4e3dd);
    font-size: 11px;
    color: #999;
}

.access-denied-footer a {
    color: #999;
    text-decoration: none;
    font-weight: 600;
}

.access-denied-footer a:hover {
    color: var(--primary-color, #00618f);
    text-decoration: underline;
}

.access-denied-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #00618f;
    text-decoration: none;
}

.access-denied-info-link:hover {
    text-decoration: underline;
}

.access-denied-brand {
    color: #999;
    font-size: 0.8rem;
}

.access-denied-brand a {
    color: #777;
    text-decoration: none;
    font-weight: 600;
}

.access-denied-brand a:hover {
    color: #00618f;
    text-decoration: underline;
}

/* Consent Required */
.consent-required-card {
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid #90cdf4;
}

.consent-required-card h2 { color: var(--primary-color); }
.consent-required-card .btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }

/* Detail Lists */
.detail-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.detail-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.detail-list dt {
    font-weight: 600;
    color: var(--gu-dunkelgrau);
    font-size: 0.9rem;
}

.detail-list dd {
    margin: 0;
    color: var(--text-color);
}

.detail-list dd.code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #6b7280;
    word-break: break-all;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gu-sandgrau);
    border-radius: 6px;
    margin: 2px;
    font-size: 0.85rem;
}

.access-tag {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

.access-tag strong {
    background: var(--gu-blue);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.access-tag .group-label { color: var(--text-color); flex: 1; }
.access-tag .level-label { margin-left: auto; font-weight: 600; white-space: nowrap; }

.access-levels {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.access-legend-mini {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: 6px;
    color: #6c757d;
}

.access-legend-mini small { font-size: 0.8rem; }

.access-hint {
    margin-top: 8px;
    color: #6c757d;
}

.access-hint a {
    color: var(--primary-color);
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e3f2fd;
    border-radius: 6px;
    margin: 2px;
    font-size: 0.85rem;
}

.flag-code {
    display: inline-block;
    padding: 2px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.creator-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gu-sandgrau);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    margin: 2px 0;
}

.creator-link:hover { background: #d5d4cf; }
.creator-link.orcid { background: #a6ce39; color: white; }
.creator-link.orcid img { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.creator-link.gnd { background: #1e3a5f; color: white; }

.creator-name {
    display: inline-block;
    padding: 4px 10px;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: 0.85rem;
}

.muted {
    color: #a0aec0;
    font-style: italic;
}

/* Raw Data */
.raw-data { cursor: pointer; }
.raw-data summary { list-style: none; }
.raw-data summary h3 { display: inline; }
.raw-data pre {
    background: var(--light-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.75rem;
    margin-top: 16px;
}

/* Resources Section */
.resources-card h3 i { margin-right: 8px; color: var(--gu-dunkelgrau); }

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.resource-item:hover {
    background: var(--gu-sandgrau);
    transform: translateX(4px);
}

.resource-icon {
    font-size: 1.25rem;
    color: var(--gu-dunkelgrau);
    width: 24px;
    text-align: center;
}

.resource-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resource-title { font-weight: 500; color: var(--text-color); }

.resource-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #6c757d;
}

.resource-category {
    background: var(--gu-sandgrau);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.resource-action { color: #a0aec0; font-size: 0.9rem; }
.resource-item:hover .resource-action { color: var(--gu-dunkelgrau); }

.resource-actions { display: flex; gap: 8px; }

.resource-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 6px;
    background: var(--gu-sandgrau);
    color: var(--gu-dunkelgrau);
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-action-btn:hover { background: var(--primary-color); color: white; }
.resource-action-btn[title="Herunterladen"]:hover { background: #38a169; }
.resource-action-btn.disabled { background: var(--gu-sandgrau); color: #a0aec0; cursor: not-allowed; }
.resource-action-btn.disabled:hover { background: var(--gu-sandgrau); color: #a0aec0; }

.resources-access-notice {
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resources-access-notice i { color: #d97706; }
.resources-locked .resource-item { opacity: 0.7; }
.resources-locked .resource-title { color: #718096; }

/* Content Relationships */
.relationships-card h3 i { margin-right: 8px; color: var(--gu-dunkelgrau); }

.relationships-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.relationships-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relationship-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.relationship-item:hover {
    background: var(--gu-sandgrau);
    border-color: var(--gu-sandgrau);
    transform: translateX(4px);
}

.relationship-thumb {
    width: 80px; height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.relationship-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gu-sandgrau);
    color: #a0aec0;
    font-size: 1.2rem;
}

.relationship-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.relationship-title {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relationship-abstract {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.4;
}

.relationship-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: #a0aec0;
    align-items: center;
}

.relationship-id {
    font-family: monospace;
    background: var(--gu-sandgrau);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.relationship-duration i { margin-right: 3px; }

.relationship-badge.unpublished {
    background: #fef3cd;
    color: #856404;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 500;
}

.relationship-arrow { color: #cbd5e0; font-size: 0.85rem; flex-shrink: 0; }
.relationship-item:hover .relationship-arrow { color: var(--gu-dunkelgrau); }

/* Course Dropdown */
.page-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.course-dropdown-wrapper { position: relative; }
.course-dropdown-toggle { font-size: 0.9rem; }

.course-dropdown-menu {
    position: absolute;
    top: 100%; right: 0;
    z-index: 1000;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
    overflow: hidden;
}

.course-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.1s;
}

.course-dropdown-item:hover { background: var(--light-bg); }
.course-dropdown-item.in-course { color: #6c757d; cursor: default; background: #f8fff8; }
.course-dropdown-item.adding { opacity: 0.5; pointer-events: none; }
.course-dropdown-item.added { color: #28a745; background: #f8fff8; }

/* Embed/Share Dialog */
.embed-dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.embed-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.embed-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gu-sandgrau);
}

.embed-dialog-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }

.embed-dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0 0.25rem;
    line-height: 1;
}

.embed-dialog-close:hover { color: var(--text-color); }
.embed-dialog-body { padding: 1.25rem; }
.embed-field { margin-bottom: 1.25rem; }

.embed-field > label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gu-dunkelgrau);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.embed-size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.embed-size-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.embed-size-option:hover { border-color: var(--primary-color); background: #e8f4fd; }
.embed-size-option input[type="radio"] { margin: 0; }
.embed-size-option:has(input:checked) { border-color: var(--primary-color); background: #e8f4fd; }

.embed-custom-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.embed-custom-size input {
    width: 80px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.embed-options { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.embed-option { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.embed-starttime { gap: 0.5rem; }

.embed-starttime input {
    width: 80px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.embed-code {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    background: var(--light-bg);
    color: var(--text-color);
    resize: vertical;
    line-height: 1.5;
}

.embed-direct-link {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    background: var(--light-bg);
    color: var(--text-color);
}

.embed-copy-btn { margin-top: 0.5rem; }

.embed-lms-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #e8f4fd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #31708f;
    line-height: 1.5;
}

.embed-lms-tip i { margin-top: 0.15rem; flex-shrink: 0; }

/* Bookmark Toggle */
.bookmark-toggle { transition: all 0.2s ease; }
.bookmark-toggle .fa-bookmark { transition: transform 0.2s ease; }
.bookmark-toggle.bookmarked { color: var(--primary-color); border-color: var(--primary-color); }
.bookmark-toggle.bookmarked:hover { background: #e8f4fd; }
.bookmark-toggle:not(.bookmarked):hover .fa-bookmark { color: var(--primary-color); }
.bookmark-toggle.saving { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.login-card {
    background: white;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 24px;
}

.login-section-primary { margin-bottom: 10px; }

.login-section-primary h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.section-hint {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

.btn-shib {
    font-size: 17px;
    padding: 14px;
    border-radius: 8px;
}

.btn-shib:hover {
    background: var(--gu-blue-dark);
    color: white;
    filter: brightness(1.15);
}

.local-login-toggle {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gu-sandgrau);
}

.toggle-link {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    transition: color 0.2s;
}

.toggle-link:hover { color: #555; }

#toggle-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.login-section-local {
    margin-top: 15px;
    padding-top: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    text-align: center;
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: var(--gu-sandgrau);
}

.login-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 13px;
}

.hint-text {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    margin-top: 10px;
}

/* ==========================================================================
   CONSENT PAGES (shared across 3 consent templates)
   ========================================================================== */

.consent-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.consent-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.consent-logos { margin-bottom: 1rem; }
.consent-logo { height: 50px; margin: 0 0.75rem; }

.consent-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.consent-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.consent-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.consent-section h2 {
    font-size: 1.15rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.consent-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-weight: normal;
    margin: 0;
}

.consent-checkbox:hover {
    background: var(--light-bg);
    border-color: #ced4da;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px; height: 18px;
    accent-color: #0b6fda;
}

.consent-checkbox span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.consent-checkbox-none {
    border-color: #ffc107;
    background: #fffbeb;
}

.consent-checkbox-none:hover { background: #fff3cd; }

.consent-divider {
    border: none;
    border-top: 1px dashed #ced4da;
    margin: 0.5rem 0;
}

.consent-terms-box {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

.consent-terms-box ul {
    margin: 0.75rem 0 0 0;
    padding-left: 1.25rem;
}

.consent-terms-box li { margin-bottom: 0.5rem; }
.consent-terms-box li:last-child { margin-bottom: 0; }

.consent-dsgvo-info {
    background: #f0f7ff;
    border-color: #b8daff;
}

.consent-dsgvo-info p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #333;
}

.consent-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.consent-actions .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
}

#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   ERROR PAGES (403, 404)
   ========================================================================== */

.error-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.error-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-card h1 {
    color: #c62828;
    margin-bottom: 15px;
}

.error-message {
    color: #666;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Resource Access Denied */
.access-denied-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.access-denied-box .access-denied-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #f0f7ff, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.access-denied-box .access-denied-icon i { font-size: 2rem; color: var(--primary-color, #00618f); }

.access-denied-box h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 16px;
}

.resource-name {
    background: #f3f4f6;
    padding: 12px 20px;
    border-radius: 8px;
    color: #4b5563;
    margin-bottom: 20px;
    font-weight: 500;
}

.resource-name i { margin-right: 8px; color: #6b7280; }

.access-denied-message {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.access-denied-box .access-denied-hint {
    background: transparent;
    border: none;
    padding: 0;
    color: #a0aec0;
    display: block;
    margin-bottom: 24px;
    text-align: center;
}

.access-denied-box .access-denied-hint i { color: var(--primary-color, #00618f); flex-shrink: 0; }

.access-denied-box .access-denied-actions { margin-bottom: 20px; }

.access-denied-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
}

.access-denied-link {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.access-denied-link a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.access-denied-link a:hover { text-decoration: underline; }

/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */

.profile-card {
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.profile-field label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.profile-field > span:not(.badge) {
    font-size: 1rem;
    color: var(--text-color);
}

/* Course Cards (profile + course-detail) */
.course-disclaimer { margin-bottom: 1.5rem; }

.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.course-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #adb5bd;
    text-decoration: none;
    color: inherit;
}

.course-card-owned { border-left: 4px solid #28a745; }
.course-card-member { border-left: 4px solid var(--primary-color); }

.course-card-icon {
    font-size: 1.5rem;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.course-card-owned .course-card-icon { color: #28a745; }
.course-card-member .course-card-icon { color: var(--primary-color); }

.course-card-body { flex: 1; min-width: 0; }

.course-card-body h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.course-card-meta i { margin-right: 0.25rem; }
.course-card-arrow { color: #adb5bd; margin-left: 1rem; flex-shrink: 0; }

/* Consent Cards (profile) */
.consent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consent-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.consent-card-active { border-left: 4px solid #28a745; }
.consent-card-past { border-left: 4px solid #adb5bd; opacity: 0.8; }

.consent-card-icon {
    font-size: 1.5rem;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.consent-card-body { flex: 1; min-width: 0; }
.consent-card-body h4 { margin: 0 0 0.25rem 0; font-size: 1rem; }

.consent-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.consent-card-meta i { margin-right: 0.25rem; }
.consent-card-actions { margin-left: 1rem; flex-shrink: 0; }

/* ==========================================================================
   BOOKMARKS PAGE
   ========================================================================== */

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

.bookmark-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    align-items: center;
    transition: opacity 0.3s;
}

.bookmark-item.unavailable { opacity: 0.6; }
.bookmark-item.removing { opacity: 0.3; pointer-events: none; }

.bookmark-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.bookmark-image img { width: 100%; height: 100%; object-fit: cover; }
.bookmark-image-placeholder { display: flex; align-items: center; justify-content: center; }

.bookmark-content { flex: 1; min-width: 0; }
.bookmark-title { font-size: 1rem; margin: 0 0 0.25rem 0; }
.bookmark-title a { color: var(--text-color); text-decoration: none; }
.bookmark-title a:hover { color: var(--primary-color); }
.unavailable-text { color: #999; }

.bookmark-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.bookmark-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
}

.bookmark-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* ==========================================================================
   COURSE DETAIL (profile)
   ========================================================================== */

.course-detail-card {
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.course-detail-field label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.course-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-item-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gu-sandgrau);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s;
}

.course-item-row:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.course-item-icon {
    font-size: 1.25rem;
    color: #6c757d;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.course-item-body { flex: 1; min-width: 0; }
.course-item-title a { font-weight: 500; color: var(--text-color); text-decoration: none; }
.course-item-title a:hover { color: var(--primary-color); text-decoration: underline; }

.course-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.course-item-actions { display: flex; gap: 0.5rem; margin-left: 1rem; flex-shrink: 0; }

.inline-form { display: inline; }

/* Members list */
.members-list { display: flex; flex-direction: column; gap: 0.25rem; }

.member-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.member-icon { width: 32px; text-align: center; flex-shrink: 0; }
.member-body { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.member-name { font-weight: 500; }
.member-meta { font-size: 0.8rem; color: #6c757d; }

/* Empty states */
.empty-state-small {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--gu-sandgrau);
}

.empty-state-small i { font-size: 2rem; color: #adb5bd; margin-bottom: 0.5rem; }

/* Course table */
.course-table-wrapper { overflow-x: auto; }

/* ==========================================================================
   ADD ITEM TO COURSE (profile)
   ========================================================================== */

.add-item-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gu-dunkelgrau);
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: border-color 0.15s;
}

form.search-form { margin-bottom: 1.5rem; }

.search-input-group:focus-within { border-color: var(--primary-color); }
.search-icon { color: #adb5bd; margin-right: 0.5rem; }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    background: transparent;
}

.search-input::placeholder { color: #adb5bd; }
.search-results-info { margin-bottom: 1rem; font-size: 0.95rem; }

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s;
}

.search-result-row:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.search-result-row.in-course { background: #f8fff8; border-color: #c3e6cb; }

.search-result-icon {
    font-size: 1.25rem;
    color: #6c757d;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.search-result-desc { font-size: 0.85rem; color: #6c757d; margin-top: 0.25rem; }
.search-result-action { margin-left: 1rem; flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
.add-item-form { display: inline; }
.add-item-btn.adding { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   CHANGE PASSWORD
   ========================================================================== */

.password-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 20px;
}

.password-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.password-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.password-tips {
    margin-top: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
}

.password-tips h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--primary-color);
}

.password-tips ul { margin: 0; padding-left: 20px; }
.password-tips li { margin-bottom: 8px; color: #333; }

/* ==========================================================================
   FAKE LOGIN (dev only)
   ========================================================================== */

.fake-login-page.login-container {
    max-width: 1100px;
}

.fake-login-page .card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.fake-login-page .checkbox-group {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.fake-login-page .checkbox-group label {
    display: block;
    margin: 8px 0;
    font-weight: normal;
    cursor: pointer;
}

.fake-login-page .info-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.user-json-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-json-edit textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
}

.user-json-example {
    background: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.user-json-example label { margin-bottom: 10px; display: block; }

/* ==========================================================================
   RESPONSIVE OVERRIDES (pages)
   ========================================================================== */

@media (max-width: 768px) {
    .home-page .intro-section h1 { font-size: 1.75rem; }
    .home-page .search-box form { flex-direction: column; }
    .home-page .items-section .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .filters-form { flex-direction: column; }
    .filter-group, .filter-search { width: 100%; }
    .filter-select { width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; }
    .results-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .hero-top { flex-direction: column; }
    .hero-image { width: 100%; max-height: none; aspect-ratio: 16/9; }
    .hero-abstract { padding: 16px; }
    .hero-title-row { flex-direction: column; gap: 12px; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { margin-top: 12px; }

    .embed-size-options { flex-direction: column; }
    .embed-options { flex-direction: column; align-items: flex-start; }

    .consent-container { margin: 0 auto 2rem; }
    .consent-section { padding: 1rem; }
    .consent-actions { flex-direction: column; }
    .consent-actions .btn { width: 100%; text-align: center; }

    .profile-info-grid { grid-template-columns: 1fr; }
    .course-card-meta { flex-direction: column; gap: 0.25rem; }
    .consent-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .consent-card-meta { flex-direction: column; gap: 0.25rem; }
    .consent-card-actions { margin-left: 0; width: 100%; }

    .course-detail-grid { grid-template-columns: 1fr; }
    .course-item-row { flex-wrap: wrap; }
    .course-item-actions { margin-left: 40px; margin-top: 0.5rem; }

    .search-result-row { flex-wrap: wrap; }
    .search-result-action { margin-left: 40px; margin-top: 0.5rem; width: calc(100% - 40px); }

    .user-json-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .bookmark-item { flex-direction: column; align-items: stretch; }
    .bookmark-image { width: 100%; }
    .bookmark-actions { justify-content: flex-end; }
}
