/* ============================================================
   SB NEWS - CLEAN DESIGN UPDATE
   Version: 5.0
   - Clean logo without purple square
   - "SB Crypto" with space
   - Beautiful aesthetic search bar
   ============================================================ */

/* ============================================================
   1. LOGO - REMOVE PURPLE SQUARE, CLEAN LOOK
   ============================================================ */

/* Remove the purple gradient background */
.sb-logo-icon,
.sb-logo .sb-logo-icon,
.sb-header .sb-logo-icon,
.sb-header-inner .sb-logo-icon,
a.sb-logo .sb-logo-icon,
.sb-logo > div:first-child,
.sb-logo-mark {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Make the logo image itself bigger and clean */
.sb-logo-icon img,
.sb-logo .sb-logo-icon img,
.sb-header .sb-logo-icon img,
a.sb-logo .sb-logo-icon img,
.sb-logo img[src*="sb-logo"],
.sb-header img[src*="sb-logo"] {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    /* Subtle shadow for depth */
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.3)) !important;
}

/* Reset any transform scale from previous fixes */
.sb-header .sb-logo,
.sb-header-inner .sb-logo,
a.sb-logo {
    transform: none !important;
}

.sb-logo .sb-brand,
.sb-logo .sb-logo-text {
    transform: none !important;
}

/* ============================================================
   2. LOGO TEXT - "SB Crypto" WITH SPACE
   ============================================================ */

/* Add space after "SB" */
.sb-logo .sb-gradient,
.sb-brand .sb-gradient,
.sb-logo-text .sb-gradient,
span.sb-gradient {
    margin-right: 8px !important;
}

/* Or if it's using different structure, add word spacing */
.sb-brand,
.sb-logo-text {
    word-spacing: 4px !important;
    letter-spacing: -0.3px !important;
}

/* Make the dot orange and nice */
.sb-logo .sb-dot,
.sb-brand .sb-dot,
span.sb-dot {
    color: #F97316 !important;
    margin-left: 1px !important;
}

/* ============================================================
   3. SEARCH BAR - BEAUTIFUL AESTHETIC DESIGN
   ============================================================ */

/* Search button in header - cleaner design */
.sb-search-btn,
.sb-header .sb-search-btn,
.sb-header-actions .sb-search-btn {
    width: 46px !important;
    height: 46px !important;
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sb-search-btn::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #9333EA 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    border-radius: 14px !important;
}

.sb-search-btn:hover::before {
    opacity: 1 !important;
}

.sb-search-btn:hover {
    border-color: transparent !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4) !important;
}

.sb-search-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: #A1A1AA !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
}

.sb-search-btn:hover svg {
    color: #FFFFFF !important;
    transform: scale(1.1) !important;
}

/* ============================================================
   SEARCH OVERLAY - ULTRA PREMIUM DESIGN
   ============================================================ */

/* Overlay background */
.sb-search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10, 10, 11, 0.95) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 12vh !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

.sb-search-overlay.is-open,
.sb-search-overlay.active,
body.search-open .sb-search-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Search container */
.sb-search-overlay .sb-search-container,
.sb-search-container {
    width: 100% !important;
    max-width: 680px !important;
    padding: 0 24px !important;
    animation: searchSlideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search title */
.sb-search-overlay .sb-search-title {
    text-align: center !important;
    margin-bottom: 32px !important;
}

.sb-search-overlay .sb-search-title h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 8px 0 !important;
}

.sb-search-overlay .sb-search-title p {
    font-size: 16px !important;
    color: #71717A !important;
    margin: 0 !important;
}

/* Search form - premium glass design */
.sb-search-overlay .sb-search-form,
.sb-search-form {
    display: flex !important;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.9) 0%, rgba(39, 39, 42, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s ease !important;
}

.sb-search-form:focus-within {
    border-color: rgba(124, 58, 237, 0.4) !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(124, 58, 237, 0.2),
        0 0 60px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Search input */
.sb-search-overlay .sb-search-form input,
.sb-search-form input[type="search"],
.sb-search-form input[type="text"],
.sb-search-form input[name="s"] {
    flex: 1 !important;
    padding: 24px 28px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.2px !important;
}

.sb-search-form input::placeholder {
    color: #52525B !important;
    font-weight: 400 !important;
}

/* Search submit button */
.sb-search-overlay .sb-search-form button,
.sb-search-form button[type="submit"] {
    padding: 24px 28px !important;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sb-search-form button:hover {
    background: linear-gradient(135deg, #5B52F0 0%, #8B4CF6 100%) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.sb-search-form button svg {
    width: 22px !important;
    height: 22px !important;
}

/* Search close button */
.sb-search-overlay .sb-search-close,
.sb-search-close {
    position: absolute !important;
    top: 40px !important;
    right: 40px !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #A1A1AA !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100000 !important;
}

.sb-search-close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #EF4444 !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* Quick search suggestions (optional enhancement) */
.sb-search-suggestions {
    margin-top: 32px !important;
    text-align: center !important;
}

.sb-search-suggestions p {
    font-size: 13px !important;
    color: #52525B !important;
    margin-bottom: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.sb-search-suggestions .sb-tags {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.sb-search-suggestions .sb-tag {
    padding: 10px 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: #A1A1AA !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.sb-search-suggestions .sb-tag:hover {
    background: rgba(124, 58, 237, 0.1) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    color: #FFFFFF !important;
}

/* ============================================================
   FOOTER LOGO - ALSO CLEAN (no square)
   ============================================================ */

.sb-footer-logo .sb-logo-icon,
.sb-premium-footer .sb-logo-icon,
footer .sb-logo-icon {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.sb-footer-logo img[src*="sb-logo"],
.sb-premium-footer img[src*="sb-logo"],
footer .sb-footer-logo img {
    width: 52px !important;
    height: 52px !important;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.25)) !important;
    border-radius: 12px !important;
}

/* Footer logo text spacing */
.sb-footer-logo .sb-gradient,
.sb-premium-footer .sb-gradient,
footer .sb-gradient {
    margin-right: 8px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .sb-logo-icon img,
    .sb-header img[src*="sb-logo"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .sb-search-overlay {
        padding-top: 8vh !important;
    }
    
    .sb-search-container {
        max-width: 100% !important;
        padding: 0 16px !important;
    }
    
    .sb-search-form input {
        padding: 20px 20px !important;
        font-size: 16px !important;
    }
    
    .sb-search-form button {
        padding: 20px !important;
    }
    
    .sb-search-close {
        top: 20px !important;
        right: 20px !important;
        width: 48px !important;
        height: 48px !important;
    }
}
