@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;700&display=swap');

.data-row td:has(img),
.data-row .field-my_prompt,
.data-row .field-pic,
.data-row .field-pic_comic,
.data-row .field-pic_refine,
.data-row .field-pic_first,
.data-row .field-pic_last,
.data-row .field-action_pic,
.data-row .field-prompt,
.data-row .field-prompt_refine,
.data-row .field-text,
.data-row .field-prompt_voice,
.data-row .field-sample_text,
.data-row .field-prompt_video,
.data-row .field-prompt_comic,
.data-row .field-video_player
{
    height: fit-content;
    flex-direction: column;
    align-items: end;
    line-height: 20px;
    align-content: flex-start;
}

.ajax-help-text {
    font-size: 10px;
    margin-top: 4px;
    font-weight: 400;
    color: #9ca3af; /* Gray 400 */
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025em;
}

.dark .ajax-help-text {
    color: #6b7280; /* Gray 500 */
}

/* Apply light font and custom color to desktop headers and responsive mobile labels */
.unfold-table thead th, 
.changelist-form table thead th,
.unfold-table th,
.unfold-table td::before {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    color: #6b7280 !important; /* Tailwind gray-500 for a lighter look */
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 200 !important;
    color: var(--color-font-subtle-light) !important;
    text-transform: none !important;
    letter-spacing: 0.05em;
}

/* Dark mode overrides for headers */
.dark .unfold-table thead th, 
.dark .unfold-table th,
.dark .unfold-table td::before {
    color: #9ca3af !important; /* Gray 400 */
    color: var(--color-font-subtle-dark) !important;
}

/* Links and row text lighter than the responsive headers (#6b7280) */
.unfold-table tbody td,
.unfold-table tbody td a,
.changelist-form table tbody td a,
.unfold-table td a,
.result-list a, 
.data-row a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    color: #9ca3af !important; 
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Dark mode overrides for row text and links - lighter than headers */
.dark .unfold-table tbody td,
.dark .unfold-table tbody td a,
.dark .changelist-form table tbody td a,
.dark .unfold-table td a,
.dark .result-list a, 
.dark .data-row a {
    color: #d1d5db !important; /* Gray 300 */
}

.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6  {
    font-weight: bold; 
}

/* Highlight the main object link in changelists (usually the first column) */
.unfold-table .field-__str__ a,
.unfold-table th.field-__str__ a,
.unfold-table a
{
    color: var(--color-primary-600) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.dark .unfold-table .field-__str__ a,
.dark .unfold-table th.field-__str__ a {
    color: var(--color-primary-400) !important;
}

.unfold-table tbody td a:hover {
    color: #4f46e5 !important; /* Indigo hover state */
}

/* 10. Customize Changelist Table Headers and Responsive Labels */
.unfold-table thead th,
.unfold-table thead th a,
.unfold-table thead th .text {
    color: var(--color-font-default-light) !important;
    font-weight: 500 !important;
    color: var(--color-font-subtle-light) !important;
    font-weight: 200 !important;
    text-transform: none !important;
}

.dark .unfold-table thead th,
.dark .unfold-table thead th a,
.dark .unfold-table thead th .text {
    color: var(--color-font-default-dark) !important;
    color: var(--color-font-subtle-dark) !important;
}

/* Target the responsive labels used in mobile view to make them less prominent */
.unfold-table [data-label]::before {
    color: var(--color-font-default-light) !important;
    font-weight: 500 !important;
    color: var(--color-font-subtle-light) !important;
    font-weight: 200 !important;
}

.dark .unfold-table [data-label]::before {
    color: var(--color-font-default-dark) !important;
    color: var(--color-font-subtle-dark) !important;
}

/* Audio Player Styling */
audio {
    height: 32px;
    width: 100%;
    min-width: 200px;
    max-width: 280px;
    border-radius: 8px;
    background-color: #f3f4f6; /* Tailwind gray-100 */
    transition: all 0.2s ease;
}

.dark audio {
    /* This filter makes native browser audio controls look native to dark mode */
    filter: invert(100%) hue-rotate(180deg) brightness(1.4);
    background-color: transparent;
}

/* Video Player Styling */
video {
    max-height: 200px;
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    border-radius: 8px;
    background-color: #000;
}

.dark video {
    border: 1px solid var(--color-border-primary, #374151);
}

/* Markdown Content Styling & Readability */
.markdown {
    font-family: 'Inter', sans-serif !important;
}

.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
    font-weight: 700 !important;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    color: var(--color-font-important-light, #111827) !important;
}

.dark .markdown h1, 
.dark .markdown h2, 
.dark .markdown h3, 
.dark .markdown h4, 
.dark .markdown h5, 
.dark .markdown h6 {
    color: #ffffff !important; /* Maximum contrast white for titles in dark mode */
}

.markdown p, .markdown ul, .markdown ol {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--color-font-default-light, #374151) !important;
    font-weight: 400 !important; /* Thicker than table default for readability */
}

.dark .markdown p, 
.dark .markdown ul, 
.dark .markdown ol, 
.dark .markdown li {
    color: #e5e7eb !important; /* Lighter gray for body text in dark mode */
    font-weight: 400 !important;
}

.dark .markdown strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Ensure lists are correctly styled and visible */
.markdown ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-left: 0.5rem !important;
}

.markdown ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-left: 0.5rem !important;
}

.markdown li {
    margin-bottom: 0.5rem !important;
    display: list-item !important;
}

.markdown li p {
    display: inline !important; /* Prevents awkward breaks in bulleted items */
}

.dark .markdown {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Slideshow (Swiper) Custom Styles */
.slideshow-container {
    background-color: #030712;
    min-height: 100vh;
}

.slide-card {
    transition: all 0.3s ease;
    max-width: 800px;
    width: 95%;
}

.dark .slide-card {
    background-color: #111827;
    border: 1px solid #1f2937;
}

@media (max-width: 768px) {
    .slide-card {
        height: 100%;
        width: 100%;
        border-radius: 0;
    }
    .media-container {
        flex: 1 1 auto;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}