/* Search Styles - Search interface, filters, history cards */

/* Search link styling for My Tools page */
.search-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.search-link:hover {
    text-decoration: none;
    color: inherit;
}

.search-item {
    padding: 0.75rem 1rem;
    border-left: 3px solid #2d5f3f;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-item:hover {
    background-color: #e9ecef;
    border-left-color: #1e4129;
    transform: translateX(2px);
}

.search-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.search-term {
    color: #2d5f3f;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    margin-right: 1rem;
}

.search-metadata {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.search-count {
    color: #666;
    font-style: italic;
    min-width: 20px;
}

.search-date {
    color: #888;
    font-size: 0.8rem;
    min-width: 80px;
}

.search-table {
    background: #2d5f3f;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 20px;
}

.search-details {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}


/* Recent searches styling - card format like About Me */
.search-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

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

.search-detail-item:hover {
    background-color: #f8f9fa;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 4px;
}

.search-detail-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    gap: 0.5rem;
}

.search-detail-link:hover {
    text-decoration: none;
    color: inherit;
}

.search-detail-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
    margin-right: 0.5rem;
    justify-content: center;
}

.search-detail-icon .target-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.search-detail-item:hover .search-detail-icon .target-icon {
    opacity: 1;
}

.search-detail-label {
    font-weight: 500;
    color: #2d5f3f;
    cursor: pointer;
    flex-grow: 1;
}

.search-detail-value {
    color: #666;
    font-size: 0.9rem;
    flex-shrink: 0;
}
