/* Search Specific Styles */
.search-container {
    background-color: var(--bg-secondary);
    padding: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-bar-container {
    position: relative;
    margin-bottom: 12px;
}

.search-bar {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    color: var(--text-primary);
    font-size: 16px;
}

.search-button {
    padding: 12px 16px;
    background-color: var(--accent);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    display: none;
}

.search-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.search-suggestion:hover {
    background-color: var(--bg-secondary);
}

.suggestion-type {
    color: var(--accent);
    font-size: 12px;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(255, 51, 102, 0.1);
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
}

.filter-option.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.hidden-input {
    display: none;
}

.results-info {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.highlighted {
    background-color: rgba(255, 51, 102, 0.2);
    color: var(--accent);
    border-radius: 2px;
    padding: 0 2px;
}

.tag.highlighted {
    background-color: rgba(255, 51, 102, 0.3);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.no-search, .no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
}

/* Search Specific Styles */
.search-container {
    background-color: var(--bg-primary);
    padding: 16px;
    margin-bottom: 0px;
    border-bottom: 1px solid var(--border);
}

.search-bar-container {
    position: relative;
    margin-bottom: 5px;
}

.search-bar {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    color: var(--text-primary);
    font-size: 16px;
}

.search-suggestions {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.search-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.search-suggestion:hover {
    background-color: #2a2a2a;
}

.suggestion-type {
    color: #ff3366;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: rgba(255, 51, 102, 0.15);
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Separate styling for different suggestion types */
.search-suggestion[data-type="service"] .suggestion-type {
    background-color: rgba(255, 51, 102, 0.15);
}

.search-suggestion[data-type="tag"] .suggestion-type {
    background-color: rgba(29, 161, 242, 0.15);
    color: #1DA1F2;
}

.search-suggestion[data-type="provider"] .suggestion-type {
    background-color: rgba(130, 71, 229, 0.15);
    color: #8247e5;
}

.search-suggestion[data-type="description"] .suggestion-type {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.search-button {
    padding: 12px 16px;
    background-color: var(--accent);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.results-info {
    padding: 5px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.highlighted {
    background-color: rgba(255, 51, 102, 0.25);
    color: #ff3366;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 500;
}

.tag.highlighted {
    background-color: rgba(255, 51, 102, 0.3);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.no-search, .no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
}

/* Username link styling */
.username-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.username-link:hover {
    color: var(--accent);
}

/* Location bar styles */
.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    padding-top: 0px;
    background-color: var(--background-primary);
    max-height: 10px;
}

.location-bar h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.change-location {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Featured post styling */
.post-card.featured-post {
    border: 2px solid #ff3366;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.15);
    transform: scale(0.99);
    margin: 10px 0;
    position: relative;
    animation: featuredPulse 2s infinite;
    margin-bottom: 40px;
}

.featured-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff3366;
    color: #fff;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Featured post content highlight */
.featured-post .card-title,
.featured-post .card-price {
    color: #ff3366;
}

/* Featured border glow animation */
@keyframes featuredPulse {
    0% { box-shadow: 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { box-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }
    100% { box-shadow: 0 0 0 rgba(255, 51, 102, 0.4); }
}

/* Section Title */
.section-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    background-color: var(--background-primary);
    border-bottom: var(--background-primary);
}

.section-title i {
    color: #ff3366;
    margin-right: 8px;
}

/* Card and Footer Styles */
.card-like-feed {
    display: flex;
    justify-content: space-between;
    background-color: var(--background-primary);
    align-items: center;
    padding: 12px 16px;
    border-top: 0px solid var(--border);
    
}

.engagement-stats {
    display: flex;
    gap: 16px;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.stat-group.liked .like-icon {
    fill: #ff3366;
}

.view-details {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Story section for featured providers */
.story-container {
    display: flex;
    padding: 16px;
    overflow-x: scroll;
    background-color: var(--background-primary);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.story-container::-webkit-scrollbar {
    display: none;
}

.provider-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
    text-decoration: none;
}

.story-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--background-secondary);
    border: 2px solid var(--accent-color);
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 1.5rem;
    overflow: hidden;
    position: relative;
}

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

.story-name {
    font-size: 0.7rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: var(--text-secondary);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Load more button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.load-more-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.load-more-btn:hover {
    background-color: var(--accent-hover);
}

.load-more-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .post-card.featured-post {
        transform: none;
    }
}