/* ==========================================================================
discvrbl Theme Stylesheet
========================================================================== */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #000000;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e1e4e8;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img{
        width: 100%;
    }

/* Container
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation
   ========================================================================== */
.site-header {    
    background-color: #5356ee;
    padding: 5px 1rem;  
}

.light-theme .site-header {
    background-color: rgba(255, 255, 255, 0.8);
}

.search-center {
    background-color:#FFFFFF40;
    width:100%;
    border-radius:50px;
    padding:12px 2rem;
    color:#FFFFFF;
}

.main-nav {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 3rem;
    max-width: 100%;   
    padding: 0.5rem 0;
}

.secondary-nav{
    background-color: #ecedfb;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;  
    color: #000000;     
}
.secondary-nav a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.secondary-nav a:hover {
    background-color: #ffffff;
    color: #222;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-end;
}

.nav-center {
    flex: 1;
    justify-content: center;
}

/* Logo
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation Links
   ========================================================================== */
.nav-link {
    color: #222;
    font-size: 14px;
    font-weight: 400;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #5356ee;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-listing{
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    background-color: #5356ee;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: black;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
}

/* Main Content
   ========================================================================== */
main {
    flex: 1;
}

/* Footer
   ========================================================================== */
.site-footer {    
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

/* Theme Toggle
   ========================================================================== */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.theme-option {
    transition: color 0.2s ease;
}

.theme-option.active {
    color: var(--text-primary);
    font-weight: 600;
}

.theme-divider {
    color: var(--text-tertiary);
}

.theme-toggle:hover .theme-option:not(.active) {
    color: var(--text-primary);
}

/* Footer Navigation
   ========================================================================== */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Back to Top Button
   ========================================================================== */
.back-to-top {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.back-to-top-icon {
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-3px);
}

/* ==========================================================================
   Search Results
========================================================================== */
.pricebuttonsplit{
    display:grid; 
    grid-template-columns: 1fr 84px; 
    gap:5px;
    justify-content: space-between; 
    align-items: center;
}

/* ==========================================================================
   Smart Bar - Bottom Sticky Navigation
   ========================================================================== */

.smart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 600px;
    pointer-events: none; /* Allow clicks through the container */
}

.smart-bar-container {
    background: #5356ee;
    backdrop-filter: blur(20px);    
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto; /* Re-enable clicks on the bar itself */
}

.light-theme .smart-bar-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.smart-bar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.smart-bar-logo .logo-icon {
    background: #5356ee;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 26px;
    transition: transform 0.2s ease;
    border: 1px solid #e0e6ff;
}

.smart-bar-logo:hover .logo-icon {
    transform: scale(1.05);
}

/* Dynamic Content Section */
.smart-bar-dynamic {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Allow flex item to shrink */
}

/* Action Button */
.smart-bar-action {
    background: white;
    color: #0a0a0a;
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    height: 45px;
}

.smart-bar-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.light-theme .smart-bar-action {
    background: #0a0a0a;
    color: white;
}

.light-theme .smart-bar-action:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dynamic Content Elements (Grid Controls, Filters, Search) */
.smart-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-bar-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.smart-bar-control:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.light-theme .smart-bar-control {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .smart-bar-control:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Search Box in Smart Bar */
.smart-bar-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 45px;
}

.smart-bar-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    height: 45px;
}

.smart-bar-search input::placeholder {
    color: var(--text-tertiary);
}

.smart-bar-search-icon {
    color: var(--text-secondary);
}

/* Grid Controls Specific */
.grid-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.grid-btn:hover {
    color: var(--text-primary);
}

.grid-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 18px;
    height: 18px;
}

.grid-cell {
    background: currentColor;
    border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smart-bar {
        width: 95%;
        bottom: 10px;
    }
    
    .smart-bar-container {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .smart-bar-search {
        max-width: 200px;
    }
    
    .smart-bar-action {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .smart-bar-dynamic {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .smart-bar-search {
        min-width: 150px;
    }
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .main-nav {
        padding: 0 20px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-left,
    .nav-center,
    .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .nav-center {
        gap: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .back-to-top-text {
        display: none;
    }
}

@media (max-width: 768px) {
.site-header {padding:0 1rem;}
.main-nav { grid-template-columns: 50px 1fr 100px;  gap: 10px }
.search-center { padding: 8px 1.5rem; font-size: 13px;}  
.hidemob{display:none;}      
}

/* Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
