/* ========================================
   Theme Switcher Styling
   ======================================== */

/* Plan Your Trip Button - Same styling as nav items */
.plan-trip-button {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.plan-trip-button:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

.button-icon {
    font-size: 1.125rem;
}

.button-text {
    display: inline-block;
}

/* Theme Switcher Container */
.theme-switcher {
    margin-left: 1.5rem;
}

/* Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.theme-toggle-btn::before {
    content: '🌙';
    font-size: 1.2rem;
}

body[data-theme="light"] .theme-toggle-btn::before {
    content: '☀️';
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .theme-text {
    color: rgba(30, 41, 59, 0.9);
}

body[data-theme="light"] .theme-toggle-btn {
    background: rgba(30, 41, 59, 0.05);
    border-color: rgba(30, 41, 59, 0.15);
}

body[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(30, 41, 59, 0.1);
    border-color: rgba(30, 41, 59, 0.25);
}






/* ========================================
   Theme Color Schemes
   ======================================== */

/* Light Theme (Default) - Soft Warm Colors with Gradient */
body[data-theme="light"] {
    --bg-primary: 
        radial-gradient(circle at 20% 20%, rgba(232, 150, 84, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 183, 110, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 169, 77, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #fffbf5 0%, #fff8f0 25%, #fffcf9 50%, #fff5eb 75%, #fffbf5 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #3d3328;
    --text-secondary: #6b5d4f;
    --text-muted: #9d8770;
}

/* Dark Theme - Warm Night Colors */
body[data-theme="dark"] {
    --bg-primary: #1a0f08;
    --bg-card: rgba(44, 24, 16, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-blue: #d4a574;
    --secondary-blue: #b5a295;
    --accent-blue: #9b8579;
}

/* Dark Theme - Global Background */
body[data-theme="dark"] {
    background: #1a0f08 !important;
    color: #f8fafc !important;
}

/* Dark Theme - Typography Overrides */
body[data-theme="dark"] h1 {
    color: #f8fafc !important;
}

body[data-theme="dark"] h2 {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(212, 165, 116, 0.3) !important;
}

body[data-theme="dark"] h3 {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
    color: #e2e8f0 !important;
}

body[data-theme="dark"] p {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .entry-content p,
body[data-theme="dark"] .page-content p,
body[data-theme="dark"] .post-content p,
body[data-theme="dark"] article p {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] ul,
body[data-theme="dark"] ol {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] li {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] a {
    color: #d4a574 !important;
}

body[data-theme="dark"] a:hover {
    color: #b5a295 !important;
}

/* Dark Theme - Header */
body[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .site-header .header-content {
    background: rgba(15, 23, 42, 0.95) !important;
    border-image: initial !important;
}

body[data-theme="dark"] .site-title a,
body[data-theme="dark"] .main-navigation a {
    color: #f8fafc !important;
}

body[data-theme="dark"] .main-navigation a:hover {
    color: #d4a574 !important;
    background: rgba(44, 24, 16, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
}

/* Dark Theme - Plan Your Trip Button */
body[data-theme="dark"] .plan-trip-button {
    color: #f8fafc !important;
}

body[data-theme="dark"] .plan-trip-button:hover {
    color: #d4a574 !important;
    background: rgba(44, 24, 16, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
}

body[data-theme="dark"] .theme-text {
    color: #f8fafc;
}

/* Dark Theme - Mobile Navigation */
@media (max-width: 768px) {
    body[data-theme="dark"] .main-navigation {
        background: rgba(15, 23, 42, 0.98) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body[data-theme="dark"] .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body[data-theme="dark"] .main-navigation a {
        color: #f8fafc !important;
        font-weight: 500 !important;
    }
    
    body[data-theme="dark"] .main-navigation a:hover {
        color: #d4a574 !important;
        background: rgba(44, 24, 16, 0.8) !important;
    }
    
    body[data-theme="dark"] .site-title a {
        color: #f8fafc !important;
    }
    
    .theme-switcher {
        margin-left: 1rem;
    }
    
    .theme-toggle-btn {
        padding: 0.5rem 0.8rem;
        height: auto;
    }
    
    .theme-text {
        font-size: 0.85rem;
    }
}

/* Dark Theme - Hero Section */
body[data-theme="dark"] .hero-section {
    background: transparent;
}

body[data-theme="dark"] .hero-wrapper {
    /* Dark theme background with image and warm overlay - WebP with JPEG fallback */
    background-image: 
        linear-gradient(135deg, rgba(15, 10, 6, 0.9) 0%, rgba(20, 12, 8, 0.9) 50%, rgba(26, 18, 12, 0.9) 100%),
        url('../images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fallback for browsers that don't support WebP */
.no-webp body[data-theme="dark"] .hero-wrapper {
    background-image: 
        linear-gradient(135deg, rgba(15, 10, 6, 0.9) 0%, rgba(20, 12, 8, 0.9) 50%, rgba(26, 18, 12, 0.9) 100%),
        url('../images/hero-background.jpg');
}

/* Dark Theme - CTA Button */
body[data-theme="dark"] .cta-button {
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="dark"] .cta-button:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #d4a574;
    border-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .hero-content p {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Dark Theme - Search Box */
body[data-theme="dark"] .search-box,
body[data-theme="dark"] .search-box.unified {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body[data-theme="dark"] .search-icon,
body[data-theme="dark"] .search-box.unified .search-icon {
    opacity: 0.7;
    order: -1 !important;
    flex-shrink: 0 !important;
    margin: 0 0.75rem !important;
}

body[data-theme="dark"] .search-input,
body[data-theme="dark"] .search-box.unified .search-input {
    color: #f8fafc !important;
    order: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

body[data-theme="dark"] .search-input::placeholder,
body[data-theme="dark"] .search-box.unified .search-input::placeholder {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .search-btn,
body[data-theme="dark"] .search-btn.unified {
    background: linear-gradient(135deg, #682b07, #4d4946) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(104, 43, 7, 0.3) !important;
    order: 1 !important;
    flex-shrink: 0 !important;
}

body[data-theme="dark"] .search-btn:hover,
body[data-theme="dark"] .search-btn.unified:hover {
    background: linear-gradient(135deg, #8a3d0d, #6b6662) !important;
    box-shadow: 0 6px 16px rgba(104, 43, 7, 0.4) !important;
    transform: scale(1.05) !important;
}

body[data-theme="dark"] .search-btn:active,
body[data-theme="dark"] .search-btn.unified:active {
    transform: scale(0.98) !important;
}

/* Override mobile responsive styles for dark theme */
@media (max-width: 968px) {
    body[data-theme="dark"] .hero-wrapper {
        padding: 4rem 2rem !important;
    }
}

@media (max-width: 768px) {
    body[data-theme="dark"] .search-box.unified {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    body[data-theme="dark"] .search-box.unified .search-icon {
        order: 1 !important;
    }
    
    body[data-theme="dark"] .search-box.unified .search-input {
        order: 2 !important;
        flex: 1 !important;
    }
    
    body[data-theme="dark"] .search-btn.unified {
        order: 3 !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    body[data-theme="dark"] .hero-wrapper {
        padding: 3rem 1.5rem !important;
    }
}

/* Dark Theme - Search Results */
body[data-theme="dark"] .search-results-header h2 {
    color: #d4a574 !important;
}

body[data-theme="dark"] .search-result-item {
    background: rgba(44, 24, 16, 0.95) !important;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

body[data-theme="dark"] .search-result-item:hover {
    border-color: rgba(212, 165, 116, 0.4);
    background: rgba(62, 36, 21, 0.95) !important;
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

body[data-theme="dark"] .search-result-title {
    color: #f8fafc !important;
}

body[data-theme="dark"] .search-result-title a {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

body[data-theme="dark"] .search-result-title a:hover {
    color: #d4a574 !important;
}

body[data-theme="dark"] .search-result-meta {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .search-result-category-link {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .search-result-category-link:hover {
    color: #d4a574 !important;
}

body[data-theme="dark"] .search-result-category-link:hover .search-result-category {
    background: rgba(212, 165, 116, 0.15);
}

body[data-theme="dark"] .search-result-excerpt {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .search-result-link {
    color: #d4a574 !important;
}

body[data-theme="dark"] .search-result-link:hover {
    color: #b5a295 !important;
}

/* Dark Theme - Single Post */
body[data-theme="dark"] .single-post {
    background: linear-gradient(135deg, #1f1a17 0%, #2a2220 30%, #342a26 60%, #2a2220 100%) !important;
    color: #ffffff !important;
}

body[data-theme="dark"] .post-title {
    color: #f8fafc !important;
}

body[data-theme="dark"] .post-meta-single {
    color: #94a3b8 !important;
}

/* Headings - Brighter for hierarchy */
body[data-theme="dark"] .post-content-single h1 {
    color: #ffffff !important;
}

body[data-theme="dark"] .post-content-single h2 {
    color: #f1f5f9 !important;
    border-bottom-color: rgba(212, 165, 116, 0.3) !important;
}

body[data-theme="dark"] .post-content-single h3 {
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .post-content-single h4 {
    color: #d4a574 !important;
}

body[data-theme="dark"] .post-content-single h5,
body[data-theme="dark"] .post-content-single h6 {
    color: #cbd5e1 !important;
}

/* Paragraphs - Softer for contrast */
body[data-theme="dark"] .post-content-single p,
body[data-theme="dark"] .post-content-single li {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .post-content-single a {
    color: #d4a574 !important;
    border-bottom-color: rgba(212, 165, 116, 0.3);
}

body[data-theme="dark"] .post-content-single a:hover {
    color: #b5a295 !important;
}

body[data-theme="dark"] .post-content-single blockquote {
    background: rgba(212, 165, 116, 0.1);
    border-left-color: #d4a574;
    color: #ffffff !important;
}

body[data-theme="dark"] .post-content-single pre {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Theme - Comments */
body[data-theme="dark"] .comments-wrapper {
    background: transparent !important;
}

body[data-theme="dark"] .comments-area {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .comments-list-container {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(15, 23, 42, 0.05) !important;
}

body[data-theme="dark"] .comments-title,
body[data-theme="dark"] .comment-author {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .comment-text,
body[data-theme="dark"] .comment-content {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .comment-reply-link {
    color: #b5a295 !important;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

body[data-theme="dark"] .comment-reply-link:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd !important;
}

/* Dark Theme - Comment Form */
body[data-theme="dark"] .comment-form {
    background: rgba(15, 23, 42, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .comment-reply-title,
body[data-theme="dark"] .comment-respond h3,
body[data-theme="dark"] #reply-title {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .logged-in-as,
body[data-theme="dark"] .comment-notes,
body[data-theme="dark"] .required,
body[data-theme="dark"] .comment-form-comment label,
body[data-theme="dark"] .comment-form p {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .logged-in-as a {
    color: #b5a295 !important;
}

body[data-theme="dark"] .logged-in-as a:hover {
    color: #9b8579 !important;
}

body[data-theme="dark"] .comment-form label {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .comment-form input,
body[data-theme="dark"] .comment-form textarea {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .comment-form input::placeholder,
body[data-theme="dark"] .comment-form textarea::placeholder {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .comment-form input:focus,
body[data-theme="dark"] .comment-form textarea:focus {
    border-color: #b5a295 !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3) !important;
}

body[data-theme="dark"] .comment-form .submit,
body[data-theme="dark"] .comment-form button[type="submit"],
body[data-theme="dark"] .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #682b07, #4d4946) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(104, 43, 7, 0.3) !important;
}

body[data-theme="dark"] .comment-form .submit:hover,
body[data-theme="dark"] .comment-form button[type="submit"]:hover,
body[data-theme="dark"] .comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #8a3d0d, #6b6662) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(104, 43, 7, 0.4) !important;
}

/* Dark Theme - Footer */
body[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #1a0f08 0%, #2c1810 100%);
    border-top-color: rgba(181, 162, 149, 0.3);
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .site-footer a {
    color: #b5a295 !important;
}

body[data-theme="dark"] .site-footer a:hover {
    color: #9b8579 !important;
}

/* Dark Theme - Tags */
body[data-theme="dark"] .tags-label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

body[data-theme="dark"] .post-tags a {
    background: rgba(155, 133, 121, 0.15);
    color: #b5a295 !important;
}

body[data-theme="dark"] .post-tags a:hover {
    background: linear-gradient(135deg, #b5a295 0%, #9b8579 100%);
    color: #ffffff !important;
}

/* Dark Theme - Autocomplete */
body[data-theme="dark"] .search-suggestions {
    background: rgba(15, 23, 42, 0.95) !important;
    border: none !important;
    z-index: 9999 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .search-suggestions .suggestion-item {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .search-suggestions .suggestion-item:hover,
body[data-theme="dark"] .search-suggestions .suggestion-item.selected {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #b5a295 !important;
}

body[data-theme="dark"] .search-suggestions .suggestion-text {
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .search-suggestions .suggestion-type {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

body[data-theme="dark"] .search-suggestions .suggestion-item.selected .suggestion-type {
    background: rgba(59, 130, 246, 0.3) !important;
    color: #b5a295 !important;
}

/* Dark Theme - Navigation Post Items (Previous/Next) */
body[data-theme="dark"] .nav-post-item {
    border-color: rgba(181, 162, 149, 0.2);
}

body[data-theme="dark"] .nav-post-item:hover {
    border-color: rgba(181, 162, 149, 0.4);
    box-shadow: 0 20px 40px rgba(181, 162, 149, 0.2);
}

body[data-theme="dark"] .nav-post-title a {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

body[data-theme="dark"] .nav-post-title a:hover {
    color: #b5a295 !important;
}

body[data-theme="dark"] .nav-post-meta,
body[data-theme="dark"] .nav-post-excerpt {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .nav-post-label,
body[data-theme="dark"] .nav-post-link {
    color: #b5a295 !important;
}

body[data-theme="dark"] .nav-post-link:hover {
    color: #9b8579 !important;
}

body[data-theme="dark"] .navigation-title {
    color: #b5a295 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        margin-left: 0;
        margin-top: 0;
    }
    
    .theme-toggle-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .theme-text {
        display: none;
    }
    
    .plan-trip-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .plan-trip-button .button-text {
        display: none;
    }
}

