/* Search tab styling */
.search-input {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
    background-color: #333333;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
}

.search-input::placeholder {
    color: #cccccc;
}

.search-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-results {
    text-align: left;
    margin: 20px 0;
    display: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* Natural language results: grid without scroll wrapper */
#naturalResults.search-results {
}

/* Result cards */
.result-card {
    box-shadow: 0 1px 3px rgba(255,255,255,0.1);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 8px;
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 160px;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 50px;
}

.result-header img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.result-card .title {
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
    color: #ffffff;
}

.result-card .subtitle {
    color: #cccccc;
    font-size: 0.8em;
    margin-top: 2px;
    font-weight: 500;
}

.result-card .actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Add All card styling */
.add-all-card {
    box-shadow: 0 1px 3px rgba(255,255,255,0.1);
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 10px;
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-all-card:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,255,255,0.2);
}

.add-all-card.highlighted {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.add-all-card .add-all-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.add-all-card .add-all-text {
    font-weight: bold;
    text-align: center;
    font-size: 0.9em;
}

/* Pin button styling */
.pin-btn {
    background: #28a745;
    color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    white-space: nowrap;
}

.pin-btn:hover {
    background: #218838;
    color: #ffffff;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.pin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.pin-btn::before {
    content: "📌";
    font-size: 1em;
}
