

/* Path: /wp-content/themes/jormuntl/style.css */
/*
Theme Name: Jormuntl
Theme URI: https://example.com/jormuntl
Author: Bored Daoist
Author URI: https://example.com
Description: A modern WordPress theme for web novel scanlation sites.
Version:0.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jormuntl
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base CSS variables - these will be overridden by PHP-generated inline styles */
:root {
  --primary-text: #1A1A1A;
  --secondary-text: #6B7280;
  --primary: #1A1A1A;
  --secondary: #6B7280;
  --accent: #2D2D2D;
  --accent-hover: #404040;
  --accent-light: #606060;
  --border: #D0D0D0;
  --bg: #F5F5F5;
  --card-bg: #FFFFFF;
  --accent-rgb: 45, 45, 45;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
}

html.dark,
:root.dark,
.dark {
  --primary-text: #FFFFFF;
  --secondary-text: #A1A1AA;
  --primary: #FFFFFF;
  --secondary: #A1A1AA;
  --accent: #FFFFFF;
  --accent-hover: #E0E0E0;
  --accent-light: #D0D0D0;
  --border: #505050;
  --bg: #030303;
  --card-bg: #1A1A1A;
  --accent-rgb: 255, 255, 255;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
}

/* Custom components */
.novel-card {
  @apply bg-card-bg border border-border rounded-xl overflow-hidden transition-all block no-underline;
}
.novel-card:hover {
  @apply -translate-y-1 shadow-lg;
}

/* Mobile breakout utility */
.mobile-breakout {
  margin-left: calc(-1 * var(--mobile-padding));
  margin-right: calc(-1 * var(--mobile-padding));
  padding-left: var(--mobile-padding);
  padding-right: var(--mobile-padding);
}

@media (min-width: 1024px) {
  .mobile-breakout {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.chapter-item {
  @apply block py-3 px-4 bg-card-bg rounded-xl mb-3 transition-all border border-border;
}
.chapter-item:hover {
  @apply -translate-y-0.5 shadow;
}

.search-container {
  @apply relative w-full;
}

.search-container form {
  @apply relative;
}

/* Custom search input styling */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  margin-left: 8px;
}

.search-input::-webkit-search-cancel-button:hover {
  opacity: 1;
}

/* Dark mode support for clear button */
.dark .search-input::-webkit-search-cancel-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* Remove default search styling */
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.translation-status {
  @apply absolute top-2 right-2 bg-black/80 text-white px-2 py-1 rounded text-xs font-medium;
}

/* Patreon lock icon styling - only for novel cards and chapter items */
.novel-card.patreon-locked .cover-wrapper::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F59E0B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 10;
  pointer-events: none;
}

/* Cover wrapper positioning */
.novel-card .cover-wrapper {
  position: relative;
}

/* Chapter card and chapter item lock icon styling */
.chapter-card.patreon-locked > div > span svg,
.chapter-card.patreon-locked span:last-child svg,
.chapter-item.patreon-locked svg:last-child {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--warning);
  display: block;
}

/* Ensure chapter card lock shows properly */
.chapter-card.patreon-locked {
  opacity: 0.85;
}

/* Enhanced search input styling */
.search-input {
  @apply transition-all duration-200;
}

.search-input:focus {
  @apply outline-none ring-2 ring-accent-20 border-accent;
}

.search-input::placeholder {
  @apply text-secondary opacity-60;
}



.carousel-container {
    @apply flex overflow-x-auto gap-4 pb-3 snap-x scroll-smooth;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    @apply hidden;
}


/* Dark theme adjustments */

.dark .cover-placeholder {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.4) 0%, rgba(var(--accent-rgb), 0.2) 100%);
}

/* Custom utilities */
.resize-vertical {
  resize: vertical;
}

/* Header Width Utilities */
/* Container utilities - handled by layout-customization.php */

/* Pagination */
.pagination ul {
  @apply flex gap-2 list-none p-0 m-0;
}

.pagination a,
.pagination span {
  @apply block py-2 px-4 border border-border rounded text-primary no-underline transition-all;
}

.pagination a:hover {
  @apply bg-accent-10 -translate-y-px;
}

.pagination .current {
  @apply bg-primary text-bg border-primary;
}

/* Mobile menu */
.mobile-menu {
  @apply fixed top-0 right-[-100%] w-[85%] max-w-xs bg-bg shadow-xl z-[1000] transition-all duration-300 p-8 overflow-y-auto;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport for mobile browsers */
}

.mobile-menu.active {
  @apply right-0;
}

/* Settings panel */
.settings-panel {
  @apply fixed right-[-400px] top-0 w-[350px] h-full bg-card-bg border-l border-border p-8 z-[1000] transition-all duration-300 overflow-y-auto;
}

/* Font family button states */
.font-family-btn {
  @apply px-4 py-2 rounded-lg transition-all duration-200 font-medium;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background-color: transparent;
  color: var(--primary-text);
}

.dark .font-family-btn {
  border-color: rgba(var(--accent-rgb), 0.1);
}

.font-family-btn.active {
  border-color: rgba(var(--accent-rgb), 0.2);
  background-color: rgba(var(--accent-rgb), 0.2);
  color: var(--primary);
}

.dark .font-family-btn.active {
  border-color: rgba(var(--accent-rgb), 0.1);
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--primary);
}

.settings-panel.active {
  @apply right-0;
}

/* Settings toggle button */
.settings-toggle {
  @apply rounded-xl;
}

.settings-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important;
}

/* Announcement tooltip - hover only */
.announcement-wrapper {
  position: relative;
  display: inline-block;
}

.announcement-icon {
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.announcement-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.announcement-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 200px;
  max-width: 300px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  white-space: normal;
}

.announcement-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}

.announcement-wrapper:hover .announcement-tooltip,
.announcement-icon:hover + .announcement-tooltip {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.5s;
}

.announcement-tooltip h4 {
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.announcement-tooltip .text-sm {
  font-size: 13px;
  line-height: 1.6;
}

/* Dark mode support */
.dark .announcement-tooltip::before {
  border-bottom-color: var(--border);
}

/* Add this to the end of the file */
.carousel-container .cover-placeholder {
    background: var(--accent-10) !important;
}

.novel-card-carousel img {
    @apply transition-transform duration-300;
}

.novel-card-carousel:hover img {
    @apply scale-105;
}
.carousel-container > a {
    min-width: 250px;
    flex: 0 0 250px;
    scroll-snap-align: start;
}
/* Carousel controls */
.carousel-control {
    @apply p-2 rounded-full bg-accent-20 hover:bg-accent-30 transition-colors;
}
/* Button Components */
.btn-primary {
  @apply bg-primary text-bg px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent-hover hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
  min-height: 44px; /* iOS touch target guideline */
}

.btn-action {
  @apply bg-accent text-bg px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent-hover hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
  min-height: 44px; /* iOS touch target guideline */
}

.btn-dmca {
  @apply text-accent border border-accent px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent hover:text-bg hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
}

/* Novel info section styling */
.novel-info-section {
  @apply bg-card-bg border border-border rounded-xl p-6 shadow-sm;
}

.dark .novel-info-section {
  @apply bg-accent-10 border-accent-20;
}

/* Tab styling */
.tab-button-improved {
  @apply px-6 py-4 font-semibold text-lg transition-all duration-200 border-b-3 border-transparent relative hover:text-accent;
}

.tab-button-improved.active {
  @apply text-accent border-accent bg-card-bg rounded-t-lg;
}


.tab-content {
  @apply mt-0;
}



.chapter-item-improved a {
  @apply block w-full;
}

/* Chapter list layout options */
.chapters-list-single {
  @apply space-y-4;
}

/* Single column gets normal padding */
.chapters-list-single .chapter-card {
  padding: 1.5rem;
}

.chapters-list-double {
  @apply grid grid-cols-1 md:grid-cols-2 gap-3;
}

/* Double column gets compact padding - already handled in template */
.chapters-list-double .chapter-card {
  padding: 0;
}

.chapters-list-double .chapter-card {
  @apply h-full;
}

/* Compact chapter card for 2-column layout */
.chapter-card-compact {
  @apply bg-card-bg border border-border rounded-xl hover:-translate-y-1 hover:shadow-lg transition-all duration-300;
}

/* Optimized padding for double layout */
.chapters-list-double .chapter-card {
  min-height: auto;
}

.chapters-list-double .chapter-card .p-4 {
  padding: 0.75rem !important;
}

/* Ensure text truncation works */
.chapters-list-double .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Novel info section improvements */
.novel-info-section {
  @apply bg-card-bg border border-border rounded-xl p-8 shadow-sm;
}

.dark .novel-info-section {
  @apply bg-accent-10 border-accent-20;
}
.btn-action {
  @apply bg-accent text-bg px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent-hover hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
  min-height: 44px; /* iOS touch target guideline */
}

.btn-dmca {
  @apply text-accent border border-accent px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent hover:text-bg hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
}

/* Novel info section styling */
.novel-info-section {
  @apply bg-card-bg border border-border rounded-xl p-6 shadow-sm;
}

.dark .novel-info-section {
  @apply bg-accent-10 border-accent-20;
}

/* Tab styling */
.tab-button {
  @apply px-6 py-3 font-medium transition-all duration-200 border-b-2 border-transparent hover:text-accent;
}

.tab-button.active {
  @apply text-accent border-accent;
}

.tab-content {
  @apply mt-6;
}

.btn-secondary {
  @apply bg-accent-10 text-primary px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent-20 hover:text-accent-hover hover:shadow-sm hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
}

.btn-outline {
  @apply border-2 border-accent text-accent px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-accent hover:text-bg hover:shadow-md hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-accent-20;
}

.btn-link {
  @apply text-accent font-medium transition-all duration-200 hover:text-accent-hover hover:underline underline-offset-4;
}

/* Link Components */
.nav-link {
  font-weight: 500;
  transition: all 0.2s;
  color: var(--nav-link-color);
}

.nav-link:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.text-link {
  color: var(--accent);
  transition: all 0.2s;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Status Components */
.status-translating {
  background-color: rgba(16, 185, 129, 0.2);
  
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-onhold {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-dropped {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Interactive Elements */
.interactive-card {
  @apply transition-all duration-300 hover:shadow-xl hover:-translate-y-2 hover:scale-[1.02];
}

.hover-glow {
  @apply transition-all duration-300 hover:shadow-lg hover:shadow-xl
;
}
/* Widget Title Styling */
.widget h3,
.widget-title,
.sidebar-widgets h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ADD after the existing button components: */
.text-bg {
  color: var(--bg);
}

.translation-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}
/* Alpine.js styling */
[x-cloak] { 
    display: none !important; 
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.novel-status {
  @apply inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold;
}

.status-translating {
  @apply bg-success-10 text-success;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed {
  @apply bg-info-10 text-info;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-onhold {
  @apply bg-warning-10 text-warning;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-dropped {
  @apply bg-error-10 text-error;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Button improvements */
.btn-disabled {
  @apply bg-gray-300 dark:bg-gray-700 text-gray-500 dark:text-gray-400 cursor-not-allowed opacity-75;
}

/* Border utilities */
.border-b-3 {
  border-bottom-width: 3px;
}

/* Breadcrumb improvements */
.breadcrumb a:hover {
  color: var(--accent);
  transition: color 0.2s;
}

/* Enhanced hover effects */
.hover-lift {
  @apply transition-transform duration-200 hover:-translate-y-0.5;
}

/* Tab content spacing */
.tab-content {
  @apply mt-0;
}

/* Genre tag hover effects */
.genre-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--primary-text);
}

.genre-tag:hover {
  background: rgba(var(--accent-rgb), 0.2);
}

.genre-tag:hover {
  @apply shadow-sm;
}

/* Line clamp utility for synopsis */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Synopsis content specific styling */
.synopsis-content {
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease;
}

.synopsis-content.line-clamp-5 {
    max-height: 7.5em; /* Approximately 5 lines */
    overflow: hidden;
}

/* Chapter Content Styling */
.chapter-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-text);
}

.chapter-content p {
    margin-bottom: 1.5em;
}

.chapter-content h1,
.chapter-content h2,
.chapter-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
    color: var(--primary-text);
}

/* Tooltip System */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--primary-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    font-weight: 400;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 2s;
}





/* Tooltip variants for different positions */
.tooltip-right .tooltip-content {
    bottom: 50%;
    left: calc(100% + 12px);
    transform: translateY(50%);
}

.tooltip-right .tooltip-content::after {
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--card-bg);
    border-left: none;
}



/* Tooltip System */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--card-bg);
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 2s;
}

.dark .tooltip-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* === NOVEL CARD SIZE SYSTEM === */
.novel-card {
    min-width: 150px;
    max-width: 100%;
}

.archive-novel-grid,
.home-novel-grid {
    width: 100%;
}

@media (max-width: 640px) {
    .novel-card {
        min-width: 140px;
    }
    
    .novel-card h3 {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
    }
}

.archive-card-xs .novel-card .p-4,
.archive-card-small .novel-card .p-4 {
    padding: 0.75rem;
}

.archive-card-medium .novel-card .p-4,
.archive-card-large .novel-card .p-4 {
    padding: 1rem;
}

@media (min-width: 1024px) {
    .archive-novel-grid,
    .home-novel-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 1023px) {
    .archive-novel-grid,
    .home-novel-grid {
        gap: 1rem;
    }
}

/* Novel Card Minimum Sizes */
.novel-card {
    min-width: 140px;
}

/* Card Content Padding Adjustments */
.novel-card .p-4 {
    padding: 1rem;
}

@media (max-width: 640px) {
    .novel-card .p-4 {
        padding: 0.75rem;
    }
    
    /* Compact list cards on mobile */
    .novel-card-list .p-4 {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .novel-card-list h3 {
        font-size: 0.9375rem;
        line-height: 1.25rem;
    }
    
    .novel-card-list .text-sm {
        font-size: 0.8125rem;
    }
}

/* === COMPACT ARCHIVE FILTERS === */

/* Default: Full-size filters */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.archive-filters select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.archive-filters .view-toggle {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
}

.archive-filters .view-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile: Always compact */
@media (max-width: 640px) {
    .archive-filters select {
        min-width: 80px;
        max-width: 105px;
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem;
    }
    
    .archive-filters .view-toggle {
        width: 36px;
        height: 36px;
    }
    
    .archive-filters .view-toggle svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .archive-filters select {
        min-width: 70px;
        max-width: 90px;
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .archive-filters .view-toggle {
        width: 34px;
        height: 34px;
    }
}
/* Logo theme switching - relies on JavaScript toggle */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

/* Ensure logos maintain aspect ratio */
.custom-logo {
    width: auto;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}
