/* Bookmarks Search - Custom Styles */

:root {
    --gradient-start: #1a1a2e;
    --gradient-mid: #16213e;
    --gradient-end: #0f3460;
    --accent-primary: #e94560;
    --accent-secondary: #0f3460;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    background-attachment: fixed;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 16px 16px 0 0;
    padding: 2rem;
}

.search-header h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.25);
    outline: none;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 0.5rem 1rem;
}

.filter-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.filter-select option {
    background: var(--gradient-mid);
    color: #fff;
}

.results-container {
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.results-container::-webkit-scrollbar {
    width: 6px;
}

.results-container::-webkit-scrollbar-track {
    background: transparent;
}

.results-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.bookmark-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bookmark-item:hover {
    background: rgba(233, 69, 96, 0.15);
    color: #fff;
    transform: translateX(4px);
}

.bookmark-item:last-child {
    border-bottom: none;
}

.bookmark-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.bookmark-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.bookmark-url {
    font-size: 0.8rem;
    opacity: 0.6;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.category-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.stats-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .search-header {
        padding: 1.5rem;
    }

    .search-header h1 {
        font-size: 1.5rem;
    }

    .results-container {
        max-height: 55vh;
    }
}

/* Category Cards Grid */
.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-card-header {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(15, 52, 96, 0.3));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.category-number {
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.category-name {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.category-count {
    font-size: 0.75rem;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.category-card-body {
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.category-card-body::-webkit-scrollbar {
    width: 4px;
}

.category-card-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.bookmark-list {
    margin: 0;
    padding-left: 2rem;
    font-size: 0.85rem;
}

.bookmark-list li {
    padding: 0.25rem 0.5rem 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bookmark-list li:last-child {
    border-bottom: none;
}

.bookmark-list a {
    color: #6ea8fe;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    word-break: break-word;
}

.bookmark-list a:hover {
    color: #9ec5fe;
    text-decoration: underline;
}