@import url(./components/navbar.css);
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

.material-symbols-outlined {
    padding: 10px;
    font-size: 1.25rem;
    margin-right: 10px;
    border-radius: 50%;
    background: transparent;
}

/* Base Styles */
body {
    margin: 0;
    background-color: black;
    color: grey;
    font-family: "Arial", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Container Layout */
.search-container {
    margin-left: 120px;
    padding: 20px;
    width: calc(100% - 120px);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.search-header {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-header h2 {
    color: var(--text-primary, #ffffff);
    margin: 0;
}

/* Search Input */
.search-input-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: transparent;
    color: var(--text-primary);
    font-size: 16px;
}

.search-input-container input:focus {
    outline: none;
}

.search-btn {
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
}

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

/* Content Layout */
.search-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* Filter Buttons */
.search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* Recent Searches */
.recent-searches {
    margin-bottom: 30px;
}

.recent-searches h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.recent-search-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.recent-search-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.search-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.search-item-icon .material-symbols-outlined {
    margin-right: 0;
}

.search-item-info {
    flex: 1;
}

.search-item-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.remove-btn {
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: var(--text-secondary);
    margin-right: 0;
}

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

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-section h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #2d3046;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-result-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Person Result Item */
.search-result-item.person {
    justify-content: space-between;
}

.message-btn {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-btn:hover {
    background-color: rgba(102, 126, 234, 0.5);
}



/* Post Result Item */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.post-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-content {
    color: var(--text-primary) !important;
    font-size: 14px;
    line-height: 1.4;
}


/* See More Link */
.see-more {
    display: block;
    margin-top: 10px;
    color: var(--accent-color);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    padding: 5px;
    transition: opacity 0.2s ease;
}

.see-more:hover {
    opacity: 0.8;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--background-dark);
        color: var(--text-dark);
    }

    input {
        color: #fff;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-container {
        margin-left: 80px;
        width: calc(100% - 80px);
    }

    .search-filters {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .search-container {
        margin-left: 60px;
        width: calc(100% - 60px);
        padding: 15px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .search-result-info h4 {
        font-size: 15px;
    }

    .search-result-info p {
        font-size: 13px;
    }

    .follow-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}



.product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    background-color: #2d3046;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-price {
    color: var(--accent-color, #667eea) !important;
    font-weight: 500;
    margin-bottom: 5px !important;
}

.product-description {
    font-size: 12px !important;
}

.buy-btn {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary, #ffffff);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    background-color: rgba(102, 126, 234, 0.5);
}