* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile header - hide entirely */
@media (max-width: 768px) {
    header {
        display: none !important;
    }
}

/* Bootstrap Integration Styles */
/* Override Bootstrap card default white background */
.card {
    background-color: transparent !important;
}

/* Override Bootstrap text-muted for better visibility on dark theme */
.text-muted {
    color: #b0b0b0 !important;
}

/* Lazy Loading Image Styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 100%;
    background-position: -200px 0;
    background-repeat: no-repeat;
    animation: loading 1.5s infinite;
}

.lazy-load.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

.lazy-load.error {
    opacity: 1;
    background: none;
    animation: none;
    filter: grayscale(100%);
}

@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* More specific hover effects for individual cards, not tab containers */
a.card.bg-secondary:hover,
.card.bg-secondary.clickable:hover {
    background-color: rgba(80, 80, 100, 0.8) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Hover effects for individual result items with border-secondary */
a.card.border-secondary:hover {
    border-color: rgba(102, 126, 234, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.card.bg-dark {
    background-color: rgba(30, 30, 50, 0.95) !important;
}

.card.bg-secondary {
    background-color: rgba(40, 40, 60, 0.8) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background-color: #667eea !important;
}

.border-primary {
    border-color: #667eea !important;
}

/* Item tab content visibility control */
.item-tab-content {
    display: none;
}

.item-tab-content.active {
    display: block;
}

/* Boss tab content visibility control */
.boss-tab-content {
    display: none;
}

.boss-tab-content.active {
    display: block;
}

/* NPC tab content visibility control */
.npc-tab-content {
    display: none;
}

.npc-tab-content.active {
    display: block;
}

/* Fish tab content visibility control */
.fish-tab-content {
    display: none;
}

.fish-tab-content.active {
    display: block;
}


/* Custom detail page header style that matches site theme */
.detail-page-header {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.95) 0%, rgba(30, 30, 45, 0.95) 100%) !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3) !important;
}

.detail-page-header h1 {
    color: #e0e0e0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-page-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.discord-legendary {
    color: #f4cd50;
    font-weight: bold;
}

.discord-icon {
    vertical-align: middle;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-text {
    text-align: left;
}

.site-title {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Global Search */
.global-search-container {
    background: rgba(15, 15, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: relative;
}

.global-search-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.global-search-form {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.global-search-box {
    display: flex;
    align-items: center;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.global-search-box:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.global-search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
}

#search-input::placeholder {
    color: #888;
}

.global-search-box button {
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-box button:hover {
    color: #667eea;
}

.global-search-box button svg {
    width: 18px;
    height: 18px;
}

/* Mobile responsive global search */
@media (max-width: 768px) {
    .global-search-content {
        padding: 0 0.75rem;
    }
    
    #search-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .global-search-box button {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .global-search-container {
        padding: 0.75rem 0;
    }
    
    .global-search-content {
        padding: 0 0.5rem;
    }
    
    #search-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .global-search-box button {
        padding: 0.75rem 0.875rem;
    }
    
    .global-search-box button svg {
        width: 16px;
        height: 16px;
    }
}

/* Sub Navigation */
.sub-navigation {
    background: rgba(20, 20, 35, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Mobile Navigation Hamburger Menu */
.search-and-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

/* Desktop - hide mobile nav elements */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .mobile-nav-dropdown {
        display: none !important;
    }
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-dropdown {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
}

.mobile-nav-dropdown.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.mobile-nav-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.mobile-nav-title {
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    text-decoration: none;
}

.mobile-nav-content {
    flex: 1;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.mobile-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skinny-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

/* Filter button styling */
.filter-button {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: #e0e0e0 !important;
}

.filter-button:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    color: #fff !important;
}

.filter-button.active {
    background: rgba(102, 126, 234, 0.4) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    color: #fff !important;
}

.site-footer {
    text-align: center;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-container {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #404040;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(40, 40, 60, 0.8);
    color: #e0e0e0;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.search-box input::placeholder {
    color: #a0a0a0;
}

.search-box button {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #5a6fd8;
}

.browse-container h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
}

.results-container {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-message {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.results-container h2 {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.results-container h3 {
    margin: 2rem 0 1rem 0;
    color: #667eea;
    font-size: 1.4rem;
}

.result-item {
    background: rgba(40, 40, 60, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.result-item.clickable {
    cursor: pointer;
}

.result-item.clickable:hover {
    background-color: rgba(50, 50, 70, 0.9);
    border-left-color: #4a5fc4;
}

.result-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.result-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.result-image.fish-image {
    width: auto;
    max-height: 64px;
    height: auto;
    object-fit: contain;
}

.result-text {
    flex: 1;
}

.result-item h4 {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
}

.result-item p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-item {
    background: rgba(40, 40, 60, 0.8);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.detail-item strong {
    color: #b0b0b0;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    font-size: 1.1rem;
}

/* Detail page styles */
.detail-container {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

/* Specific detail page image classes */
.item-detail-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.boss-detail-image {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.npc-detail-image {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.spell-detail-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.fish-detail-image {
    width: auto;
    max-height: 64px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Item detail page specific styling */
.item-detail-image {
    align-self: center;
}

.item-detail-title h1 {
    font-size: 1.5rem !important;
    text-align: left !important;
    margin: 0 !important;
}

.item-detail-title .description {
    text-align: left;
}

.detail-title {
    flex: 1;
}

.detail-title h1 {
    font-size: 2.5rem;
    color: #e0e0e0;
    margin: 0.5rem 0;
    text-align: center;
}

.detail-stats {
    flex: 0 0 300px;
    background: rgba(40, 40, 60, 0.8);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-stats h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.detail-title .description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-top: 1rem;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}


.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(40, 40, 60, 0.8);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.detail-item.clickable {
    cursor: pointer;
}

.detail-item.clickable:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
    background-color: rgba(50, 50, 70, 0.9);
    transform: translateY(-1px);
}

/* Ensure detail-item links have consistent styling */
a.detail-item.clickable {
    text-decoration: none;
    color: inherit;
}

a.detail-item.clickable:hover {
    text-decoration: none;
    color: inherit;
}

.detail-item strong {
    color: #b0b0b0;
}

.abilities-list {
    display: grid;
    gap: 1rem;
}

.ability-item {
    background: rgba(40, 40, 60, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #28a745;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.ability-item h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
}

.ability-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ability-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ability-stat {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.detail-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.back-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background: #4a5fc4;
    color: white;
    text-decoration: none;
}

.bonuses-list, .casts-list, .costs-list, .quests-list {
    display: grid;
    gap: 0.5rem;
}

.bonus-item, .cast-item, .cost-item, .quest-reference {
    background: rgba(40, 40, 60, 0.8);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #17a2b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: all 0.2s ease;
}

/* Clickable reference hover styles for item detail page */
.fish-reference.clickable, 
.object-location-reference.clickable, 
.quest-reference.clickable,
.item-reference.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.fish-reference.clickable:hover, 
.object-location-reference.clickable:hover,
.quest-reference.clickable:hover,
.item-reference.clickable:hover {
    text-decoration: none;
    color: inherit;
}

.fish-reference.clickable:hover .detail-item,
.object-location-reference.clickable:hover .detail-item,
.quest-reference.clickable:hover .detail-item,
.item-reference.clickable:hover .detail-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
    background-color: rgba(50, 50, 70, 0.9);
    transform: translateY(-1px);
}

/* Item info styles for fish detail page drops */
.item-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.item-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.item-type {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.2;
}

/* Bait item link styles for fish detail page */
.bait-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bait-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.bait-item-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.bonus-stat, .cast-stat, .cost-stat {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.no-quests {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.bait-item-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bait-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.bait-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
    background-color: rgba(50, 50, 70, 0.9);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.bait-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bait-name {
    color: #e0e0e0;
    font-weight: 500;
}

/* Tab Navigation */
.tabs-container {
    margin: 1.5rem 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.tab-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background: #e9ecef;
    color: #333;
}

.tab-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-content {
    margin-top: 1rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Table-like Results */
.results-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.table-header {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.table-header .table-cell.sortable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    position: relative;
}

.table-header .table-cell.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sort-indicator {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #667eea;
}

.table-row {
    display: flex;
    align-items: center;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.table-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
}

.table-row.clickable {
    cursor: pointer;
}

.table-row.clickable:hover {
    background-color: rgba(50, 50, 70, 0.9);
}

/* Ensure anchor links with table-row classes display properly */
a.table-row {
    text-decoration: none;
    color: inherit;
}

a.table-row:visited {
    color: inherit;
}

/* Ensure other clickable anchor elements display properly */
a.zone-fish-row,
a.objective-table-row {
    text-decoration: none;
    color: inherit;
}

a.zone-fish-row:visited,
a.objective-table-row:visited {
    color: inherit;
}

/* Quest link styling */
.quest-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.quest-link:hover {
    color: #8fa2ff;
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.quest-link:visited {
    color: #9370db;
}

.quest-description {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-top: 0.25rem;
    font-style: italic;
}

.table-cell {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.image-cell {
    flex: 0 0 60px;
    justify-content: center;
}

.name-cell {
    flex: 1 1 200px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.name-cell.full-width {
    flex: 1 1 auto;
}

.info-cell {
    flex: 0 1 150px;
    justify-content: flex-end;
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    min-width: 0;
}

.row-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.row-image.fish-image {
    width: auto;
    max-height: 48px;
    height: auto;
    object-fit: contain;
}

.row-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: bold;
}

.name-cell h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #e0e0e0;
    word-break: break-word;
}

/* Zone Detail Page */
.zone-map {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.zone-map-image {
    object-fit: cover;
    border-radius: 12px;
}

.subzones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.subzone-item {
    background: rgba(40, 40, 60, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.subzone-item h4 {
    margin: 0;
    color: #e0e0e0;
}

.zone-fish-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zone-fish-row {
    display: flex;
    align-items: center;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.zone-fish-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
    background-color: rgba(50, 50, 70, 0.9);
}

.zone-fish-row.clickable {
    cursor: pointer;
}

/* Zone navigation links */
.zone-nav-link {
    display: inline-block;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
}

.zone-nav-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
    background-color: rgba(50, 50, 70, 0.9);
    transform: translateY(-1px);
}

.zone-nav-link.clickable {
    cursor: pointer;
}

.zone-nav-link:visited {
    color: inherit;
}

.bait-cell {
    flex: 0 1 200px;
    justify-content: flex-end;
}

.zone-bait-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bait-image-small {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bait-name-small {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.any-bait {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.no-fish {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Mobile layout optimizations */

    /* Quest detail page mobile improvements */
    .detail-header {
        margin-bottom: 1rem;
    }

    .detail-title h1 {
        font-size: 1.8rem !important;
    }

    /* Hide desktop navigation on mobile */
    .sub-navigation {
        display: none;
    }

    /* Show mobile hamburger menu */
    .mobile-nav-toggle {
        display: flex;
    }

    .global-search-container {
        position: relative;
        margin-bottom: 0.5rem;
        padding-top: 1rem;
    }
    
    .search-and-nav-wrapper {
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .global-search-form {
        flex: 1;
    }

    /* Navigation improvements */
    .tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .tab-button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-height: 44px; /* Touch target minimum */
        flex: 1 1 auto;
        min-width: 120px;
    }

    /* Main content spacing */
    main {
        padding: 0 1rem;
        margin-top: 1rem;
    }

    .search-container, .results-container {
        padding: 1rem;
        margin: 0 -0.5rem;
    }

    /* Table improvements for mobile */
    .results-table {
        display: block;
    }

    .table-header {
        display: none; /* Hide headers on mobile */
    }

    .table-row {
        display: block;
        background: rgba(40, 40, 60, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .table-row:hover {
        background: rgba(50, 50, 70, 0.9);
        border-color: #667eea;
    }

    .table-cell {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .image-cell {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .name-cell {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .name-cell h4 {
        font-size: 1.2rem;
        margin: 0;
    }

    .info-cell {
        text-align: center;
        color: #b0b0b0;
        font-size: 0.9rem;
    }

    .bait-cell {
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Touch-friendly buttons and links */
    .back-button, .detail-actions a {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Search improvements */
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 44px;
    }

    .search-button {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .category-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-button {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1 1 auto;
        min-width: 100px;
    }

    /* Detail page improvements */
    .details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-container {
        padding: 1.5rem;
    }

    .detail-section {
        margin-bottom: 2rem;
    }

    .detail-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    /* Quest and shop table improvements */
    .objectives-table, .rewards-list, .shop-table {
        gap: 0.75rem;
    }

    .objective-table-row, .shop-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
    }

    .objective-image-cell, .objective-name-cell, .objective-info-cell {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0.25rem 0;
    }

    .objective-name-cell h4 {
        font-size: 1rem !important;
        margin: 0.25rem 0 !important;
    }

    /* Reduce height of objective table rows on mobile */
    .objective-table-row {
        padding: 0.5rem !important;
        min-height: auto !important;
    }

    .objective-row-image {
        width: 32px !important;
        height: 32px !important;
    }

    /* Form improvements */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Image optimization for mobile */
    .row-image, .result-image, .item-detail-image, .boss-detail-image, .npc-detail-image, .spell-detail-image, .fish-detail-image {
        max-width: 100%;
        height: auto;
    }

    /* Improve readability on mobile */
    body {
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Better tap highlighting */
    a, button, .tab-button, .table-row.clickable {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Prevent horizontal scrolling */
    .search-container, .results-container, .detail-container {
        overflow-x: hidden;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {

    main {
        padding: 0 0.5rem;
    }

    .search-container, .results-container {
        padding: 0.75rem;
        margin: 0 -0.25rem;
    }

    .detail-container {
        padding: 1rem;
    }

    .tab-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }

    .table-row {
        padding: 0.75rem;
    }

    .row-image {
        width: 48px;
        height: 48px;
    }

    /* Stack navigation more aggressively */
    .category-buttons {
        flex-direction: column;
    }

    .category-button {
        min-width: auto;
        width: 100%;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    
    .tabs {
        padding: 0.5rem;
    }
    
    main {
        margin-top: 0.5rem;
    }
}

    /* Shop Table Styles */
    .shop-table {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .shop-row {
        display: flex;
        align-items: center;
        background: rgba(40, 40, 60, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.75rem;
        transition: all 0.2s ease;
        color: #e0e0e0;
    }

    .shop-row:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border-color: #667eea;
        background-color: rgba(50, 50, 70, 0.9);
    }

    .price-cell {
        flex: 0 1 200px;
        justify-content: flex-end;
    }

    .price-display {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .price-icon {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .price-amount {
        color: #495057;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .price-separator {
        color: #666;
        margin: 0 0.2rem;
    }

    .no-price {
        color: #28a745;
        font-style: italic;
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* Shop level styling */
    .shop-level-section {
        margin-bottom: 2rem;
    }

    .shop-level-header {
        color: #667eea;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        border-bottom: 2px solid rgba(102, 126, 234, 0.3);
        font-weight: 600;
    }

    .shop-level-section:last-child {
        margin-bottom: 0;
    }

    /* Item and Quest Detail Layout */
    .item-detail-layout,
    .quest-detail-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        margin-top: 1rem;
    }

    .item-main-content,
    .quest-main-content {
        min-width: 0; /* Prevents grid overflow */
    }

    .item-sidebar,
    .quest-sidebar {
        background: rgba(40, 40, 60, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        height: fit-content;
        position: sticky;
        top: 2rem;
    }

    .sidebar-section {
        margin-bottom: 2rem;
    }

    .sidebar-section:last-child {
        margin-bottom: 0;
    }

    .sidebar-section h4 {
        color: #667eea;
        font-size: 1.1rem;
        margin: 0 0 1rem 0;
        font-weight: 600;
        border-bottom: 2px solid rgba(102, 126, 234, 0.3);
        padding-bottom: 0.5rem;
    }

    /* NPC Seller Styling */
    .npc-sellers-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .npc-seller-reference {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
    }

    .npc-seller-reference:hover {
        text-decoration: none;
        color: inherit;
    }

    .npc-seller-info {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        background: rgba(50, 50, 70, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .npc-seller-reference:hover .npc-seller-info {
        background: rgba(50, 50, 70, 0.9);
        border-color: #667eea;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transform: translateY(-1px);
    }

    .npc-seller-image {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .npc-seller-details {
        flex: 1;
        min-width: 0;
    }

    .npc-seller-name {
        color: #e0e0e0;
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
    }

    .npc-seller-level {
        color: #667eea;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .npc-seller-price {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .price-icon-small {
        width: 16px;
        height: 16px;
        object-fit: cover;
        border-radius: 3px;
    }

    .price-amount-small {
        color: #b0b0b0;
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* Sidebar bonuses and casts styling */
    .sidebar-section .bonuses-list,
    .sidebar-section .casts-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-section .bonus-item,
    .sidebar-section .cast-item {
        background: rgba(50, 50, 70, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding: 0.75rem;
    }

    .sidebar-section .bonus-stat,
    .sidebar-section .cast-stat {
        color: #e0e0e0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .sidebar-section .bonus-stat strong,
    .sidebar-section .cast-stat strong {
        color: #667eea;
        font-weight: 600;
    }

    /* Mobile responsive layout */
    @media (max-width: 1024px) {
        .item-detail-layout {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .item-sidebar {
            position: static;
            order: -1; /* Move sidebar above main content on mobile */
        }

        .npc-seller-info {
            flex-direction: column;
            text-align: center;
        }

        .npc-seller-details {
            text-align: center;
        }

        .npc-seller-price {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .item-sidebar {
            padding: 1rem;
        }

        .sidebar-section {
            margin-bottom: 1.5rem;
        }

        .npc-sellers-list {
            gap: 0.75rem;
        }

        .npc-seller-info {
            padding: 0.75rem;
        }
    }

    /* Boss Drop Styling */
    .boss-drops-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .boss-drop-reference {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
    }

    .boss-drop-reference:hover {
        text-decoration: none;
        color: inherit;
    }

    .boss-drop-info {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        background: rgba(50, 50, 70, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .boss-drop-reference:hover .boss-drop-info {
        background: rgba(50, 50, 70, 0.9);
        border-color: #667eea;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transform: translateY(-1px);
    }

    .boss-drop-image {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .boss-drop-details {
        flex: 1;
        min-width: 0;
    }

    .boss-drop-name {
        color: #e0e0e0;
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
    }

    .boss-drop-health {
        color: #667eea;
        font-size: 0.85rem;
        font-weight: 500;
    }

    @media (max-width: 480px) {
        .boss-drop-info {
            flex-direction: column;
            text-align: center;
        }

        .boss-drop-details {
            text-align: center;
        }
    }

    @media (max-width: 768px) {
        .boss-drops-list {
            gap: 0.75rem;
        }

        .boss-drop-info {
            padding: 0.75rem;
        }
    }

    /* Boss Detail Drop Styling */
    .boss-drops-section {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .boss-drop-item {
        display: block;
    }

    .boss-drop-link {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
    }

    .boss-drop-link:hover {
        text-decoration: none;
        color: inherit;
    }

    .boss-drop-name {
        color: #e0e0e0;
        font-weight: 600;
        text-transform: capitalize;
    }

    .boss-drop-description {
        color: #b0b0b0;
        font-size: 0.85rem;
        margin: 0.25rem 0 0 0;
    }

    /* Quest Giver and Chain Styling */
    .quest-giver-reference,
    .quest-chain-reference {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
    }

    .quest-giver-reference:hover,
    .quest-chain-reference:hover {
        text-decoration: none;
        color: inherit;
    }

    .quest-giver-info,
    .quest-chain-info {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        background: rgba(50, 50, 70, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .quest-giver-reference:hover .quest-giver-info,
    .quest-chain-reference:hover .quest-chain-info {
        background: rgba(60, 60, 80, 0.8);
        border-color: #667eea;
    }

    .quest-giver-image {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .quest-chain-image {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .quest-giver-details,
    .quest-chain-details{
        flex: 1;
        min-width: 0;
    }

    .quest-giver-name,
    .quest-chain.name {
        color: #e0e0e0;
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
    }

    .quest-giver-type {
        color: #667eea;
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* Mobile responsive layout for quest details */
    @media (max-width: 1024px) {
        .quest-detail-layout {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .quest-sidebar {
            position: static;
            order: -1; /* Move sidebar above main content on mobile */
        }

        .quest-giver-info {
            flex-direction: column;
            text-align: center;
        }

        .quest-giver-details {
            text-align: center;
        }
    }

    @media (max-width: 768px) {
        .quest-sidebar {
            padding: 1rem;
        }

        .quest-chain-list {
            gap: 0.75rem;
        }

        .quest-giver-info,
        .quest-chain-info {
            padding: 0.75rem;
        }
    }

    /* Zone and NPC Tabs Styling */
    .zone-tabs-container,
    .npc-tabs-container {
        margin-top: 2rem;
    }

    .zone-tabs,
    .npc-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .zone-tab-button,
    .npc-tab-button {
        background: rgba(40, 40, 60, 0.6);
        color: #b0b0b0;
        border: none;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-bottom: 3px solid transparent;
        min-height: 60px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .zone-tab-button:hover,
    .npc-tab-button:hover {
        background: rgba(50, 50, 70, 0.8);
        color: #e0e0e0;
        border-bottom-color: rgba(102, 126, 234, 0.5);
    }

    .zone-tab-button.active,
    .npc-tab-button.active {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
        border-bottom-color: #667eea;
        font-weight: 600;
    }

    .zone-tab-button span,
    .npc-tab-button span {
        color: #888;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .zone-tab-button.active span,
    .npc-tab-button.active span {
        color: #667eea;
        font-weight: 500;
    }

    .zone-tab-content,
    .npc-tab-content {
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    .zone-tab-content.active,
    .npc-tab-content.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .no-content {
        text-align: center;
        color: #888;
        font-style: italic;
        padding: 2rem;
        background: rgba(40, 40, 60, 0.3);
        border-radius: 8px;
        border: 1px dashed rgba(255, 255, 255, 0.2);
    }

    /* Mobile responsive tabs */
    @media (max-width: 768px) {
        .zone-tabs,
        .npc-tabs {
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
        }

        .zone-tab-button,
        .npc-tab-button {
            flex: 1 1 auto;
            min-width: 120px;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            min-height: 50px;
        }

        .zone-tab-button span,
        .npc-tab-button span {
            font-size: 0.8rem;
        }

        .zone-tabs-container,
        .npc-tabs-container {
            margin-top: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .zone-tabs,
        .npc-tabs {
            flex-direction: column;
        }

        .zone-tab-button,
        .npc-tab-button {
            width: 100%;
            justify-content: center;
        }
    }

    /* Legendary item styling */
    .table-row.clickable.legendary,
    .table-row.legendary,
    .legendary {
        background: linear-gradient(135deg, rgba(128, 0, 128, 0.3) 0%, rgba(75, 0, 130, 0.3) 100%) !important;
        border-color: #8a2be2 !important;
    }

    .table-row.clickable.legendary:hover,
    .table-row.legendary:hover,
    .legendary:hover {
        background: linear-gradient(135deg, rgba(128, 0, 128, 0.4) 0%, rgba(75, 0, 130, 0.4) 100%) !important;
        border-color: #9370db !important;
    }

    .result-item.legendary {
        background: linear-gradient(135deg, rgba(128, 0, 128, 0.3) 0%, rgba(75, 0, 130, 0.3) 100%);
        border-left-color: #8a2be2;
    }

    .result-item.legendary:hover {
        background: linear-gradient(135deg, rgba(128, 0, 128, 0.4) 0%, rgba(75, 0, 130, 0.4) 100%);
        border-left-color: #9370db;
    }

    .detail-container.legendary {
        background: linear-gradient(135deg, rgba(128, 0, 128, 0.3) 0%, rgba(75, 0, 130, 0.3) 100%);
        border-color: #8a2be2;
    }

    /* Screen reader only content */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Quest Detail Styles */
    .objectives-table, .rewards-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .objective-table-row {
        display: flex;
        align-items: center;
        background: rgba(40, 40, 60, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.75rem;
        transition: all 0.2s ease;
        color: #e0e0e0;
    }

    .objective-table-row:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border-color: #667eea;
    }

    .objective-table-row.clickable {
        cursor: pointer;
    }

    .objective-table-row.clickable:hover {
        background-color: rgba(50, 50, 70, 0.9);
    }

    .objective-image-cell {
        flex: 0 0 60px;
        justify-content: center;
    }

    .objective-name-cell {
        flex: 1 1 200px;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
    }

    .objective-info-cell {
        flex: 0 1 200px;
        justify-content: flex-end;
        color: #666;
        font-size: 0.9rem;
        text-align: right;
        min-width: 0;
    }

    .objective-row-image {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
    }

    .objective-row-category {
        display: inline-block;
        background: #667eea;
        color: white;
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        text-transform: uppercase;
        font-weight: bold;
    }

    .objective-name-cell h4 {
        margin: 0;
        font-size: 1.1rem;
        color: #e0e0e0;
        word-break: break-word;
    }

    .objective-item-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.2rem;
    }

    .objective-item-name {
        color: #667eea;
        font-weight: 500;
    }

    .objective-unknown-item {
        color: #666;
        font-style: italic;
    }

    .objective-quantity {
        color: #b0b0b0;
        font-size: 0.85rem;
    }

    .reward-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(40, 40, 60, 0.8);
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border-left: 3px solid #667eea;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }

    .objective-content, .reward-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

    .objective-name {
        font-weight: 500;
        color: #e0e0e0;
    }

    .objective-quantity, .reward-quantity {
        color: #b0b0b0;
        font-size: 0.9rem;
    }

    .objective-item-display {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .item-link {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: #667eea;
        padding: 0.1rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .item-name-link {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: #667eea;
        padding: 0.1rem 0.25rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .item-link:hover, .item-name-link:hover {
        background-color: rgba(102, 126, 234, 0.1);
        text-decoration: none;
        color: #667eea;
    }

    .objective-item-link, .reward-item-link {
        display: flex;
        align-items: center;
    }

    .objective-item-icon, .reward-item-icon {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .objective-item-name, .reward-item-name {
        font-weight: 500;
        color: #667eea;
        text-decoration: none;
    }

    .reward-item-unknown {
        color: #666;
        font-style: italic;
        font-size: 0.9rem;
    }

    .quest-npc-link {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
    }

    .quest-npc-link:hover {
        color: #667eea;
        text-decoration: none;
    }

    .quest-giver-display {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .quest-giver-image {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    /* NPC giver styling in quest lists */
    .npc-giver {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .npc-giver-image {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .quest-npc-giver {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
        opacity: 0.8;
        font-size: 0.9em;
    }

    .quest-npc-giver .quest-giver-image {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .quest-giver-name {
        color: #a0a0a0;
    }

    .quest-unknown-giver {
        opacity: 0.6;
        font-style: italic;
        font-size: 0.9em;
        color: #888;
    }

    /* Cookie Consent Banner */
    .cookie-consent-banner {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        color: white;
        z-index: 10000;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    }

    .cookie-consent-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .cookie-consent-text h4 {
        margin: 0 0 0.5rem 0;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .cookie-consent-text p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.4;
        color: #e0e0e0;
    }

    .cookie-consent-buttons {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }

    .cookie-btn {
        padding: 0.7rem 1.5rem;
        border: none;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
    }

    .cookie-accept {
        background: #4CAF50;
        color: white;
    }

    .cookie-accept:hover {
        background: #45a049;
        transform: translateY(-1px);
    }

    .cookie-decline {
        background: #f44336;
        color: white;
    }

    .cookie-decline:hover {
        background: #da190b;
        transform: translateY(-1px);
    }

    .cookie-link {
        color: #a0a0a0;
        text-decoration: underline;
        font-size: 0.85rem;
        transition: color 0.2s ease;
    }

    .cookie-link:hover {
        color: #fff;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .cookie-consent-content {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }

        .cookie-consent-buttons {
            justify-content: center;
        }

        .cookie-btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.85rem;
        }
    }

    /* Privacy Policy Page Styling */
    .privacy-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 0;
    }

    .privacy-section {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .privacy-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .privacy-section h2 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #4CAF50;
        display: inline-block;
    }

    .privacy-section h3 {
        color: #e0e0e0;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        margin-top: 1.5rem;
    }

    .privacy-section p {
        line-height: 1.6;
        margin-bottom: 1rem;
        color: #d0d0d0;
    }

    .privacy-section ul {
        margin: 1rem 0;
        padding-left: 2rem;
    }

    .privacy-section li {
        margin-bottom: 0.5rem;
        color: #d0d0d0;
        line-height: 1.5;
    }

    .privacy-section a {
        color: #4CAF50;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .privacy-section a:hover {
        color: #66BB6A;
    }

    .privacy-section strong {
        color: #fff;
        font-weight: 600;
    }

    /* Mobile responsive for privacy page */
    @media (max-width: 768px) {
        .privacy-content {
            padding: 1rem 0;
        }

        .privacy-section {
            margin-bottom: 2rem;
            padding-bottom: 1rem;
        }

        .privacy-section h2 {
            font-size: 1.3rem;
        }

        .privacy-section h3 {
            font-size: 1.1rem;
        }

        .privacy-section ul {
            padding-left: 1.5rem;
        }
    }

    /* Object type styling */
    .object-type-treasure {
        background: #ffd700;
        color: #8b6914;
    }

    .object-type-chest {
        background: #cd853f;
        color: white;
    }

    .object-type-object {
        background: #9370db;
        color: white;
    }

    /* Footer Styles */
    .site-footer {
        text-align: center;
        background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 30, 45, 0.95) 100%);
        border-top: 2px solid rgba(102, 126, 234, 0.3);
        margin-top: 3rem;
        padding: 1.5rem 0;
        color: #e0e0e0;
    }

    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        text-align: center;
    }

    .footer-bottom p {
        color: #888;
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
    }

    .footer-link {
        color: #4CAF50;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .footer-link:hover {
        color: #66BB6A;
        text-decoration: underline;
    }

    /* Responsive footer adjustments */
    @media (max-width: 768px) {
        .site-footer {
            padding: 1rem 0;
        }
        
        .footer-bottom p {
            font-size: 0.85rem;
        }
    }

    /* Search Dropdown Styles */
    .search-dropdown {
        position: absolute;
        background: rgba(30, 30, 45, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        z-index: 1000;
        max-height: 500px;
        overflow-y: auto;
        
        /* Desktop: Match main content width - centered with same constraints as results-container */
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 2rem);
        margin: 0 1rem;
    }
    
    /* Ensure dropdown doesn't exceed container bounds on large screens */
    @media (min-width: 1240px) {
        .search-dropdown {
            width: 1200px;
            margin: 0;
        }
    }

    /* Tablet styles - between mobile and desktop */
    @media (min-width: 769px) and (max-width: 1024px) {
        .search-dropdown {
            width: calc(100vw - 4rem);
            margin: 0 2rem;
        }
    }

    .search-results-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(40, 40, 60, 0.8);
    }

    .search-results-count {
        color: #b0b0b0;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .search-no-results {
        padding: 2rem 1rem;
        text-align: center;
        color: #888;
        font-style: italic;
    }

    .search-tabs {
        display: flex;
        background: rgba(20, 20, 35, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
    }

    .search-tab {
        background: transparent;
        border: none;
        color: #b0b0b0;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        min-width: max-content;
    }

    .search-tab:hover {
        background: rgba(50, 50, 70, 0.6);
        color: #e0e0e0;
    }

    .search-tab.active {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
        border-bottom-color: #667eea;
        font-weight: 600;
    }

    .search-tab-content {
        display: none;
        max-height: 300px;
        overflow-y: auto;
    }

    .search-tab-content.active {
        display: block;
    }

    .search-result-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: #e0e0e0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
    }

    .search-result-item:hover {
        background: rgba(50, 50, 70, 0.8);
        color: #e0e0e0;
        text-decoration: none;
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-image {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
        background: rgba(60, 60, 80, 0.5);
    }

    .search-result-details {
        flex: 1;
        min-width: 0;
    }

    .search-result-name {
        font-weight: 600;
        font-size: 0.95rem;
        color: #e0e0e0;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-result-type {
        font-size: 0.8rem;
        color: #888;
        text-transform: capitalize;
    }

    .search-more {
        padding: 0.75rem 1rem;
        text-align: center;
        color: #667eea;
        font-size: 0.85rem;
        font-weight: 500;
        background: rgba(40, 40, 60, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile responsive search dropdown */
    @media (max-width: 768px) {
        .search-dropdown {
            /* Full screen width on mobile */
            left: 0 !important;
            right: 0 !important;
            width: 100vw !important;
            max-width: none !important;
            transform: none !important;
            margin: 0 !important;
            border-radius: 0;
            max-height: 70vh;
            border-left: none;
            border-right: none;
        }

        .search-tabs {
            flex-wrap: wrap;
        }

        .search-tab {
            flex: 1 1 auto;
            min-width: 80px;
            font-size: 0.8rem;
            padding: 0.6rem 0.8rem;
        }

        .search-result-item {
            padding: 1rem;
        }

        .search-result-name {
            font-size: 1rem;
        }

        .search-result-type {
            font-size: 0.85rem;
        }
    }

    /* Global search container positioning */
    .global-search-container {
        position: relative;
    }

    /* Old search container fallback for any remaining instances */
    .search-container {
        position: relative;
    }

    /* Hide original search results when using client-side search */
    .client-search-active .results-container {
        display: none;
    }

/* Spell Levels Grid Styling */
.spell-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.spell-level-card {
    background: rgba(40, 40, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.spell-level-card:hover {
    background: rgba(50, 50, 80, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.spell-level-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.spell-level-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.spell-level-title {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.spell-level-stat {
    margin-top: 1rem;
}

.spell-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.spell-stat-label {
    color: #b0b0b0;
    font-weight: 500;
}

.spell-stat-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .spell-levels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spell-level-card {
        padding: 1rem;
    }
}