/* nav-search.css */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 10px;
    z-index: 1002;
}

.search-input-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    will-change: width;
}

.search-input-wrapper.active {
    width: 250px;
    margin-right: 10px;
}

.nav-search-input {
    width: 100%;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 7, 58, 0.3);
    border-radius: 20px;
    color: white;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-search-input:focus {
    border-color: #FF073A;
    box-shadow: 0 0 10px rgba(255, 7, 58, 0.4);
}

.search-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
}

.search-toggle-btn:hover {
    color: #FF073A;
    transform: scale(1.15);
}

/* Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 7, 58, 0.2);
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 7, 58, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    contain: content;
}

.search-results-dropdown.active {
    display: flex;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.search-result-item:hover {
    background: rgba(255, 7, 58, 0.1);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 7, 58, 0.4);
}

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

.search-result-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.search-result-badge {
    font-size: 10px;
    color: #FF073A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-no-results, .search-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.search-loading .spinner {
    width: 20px;
    height: 20px;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 7, 58, 0.1);
    border-top: 2px solid #FF073A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .search-container {
        margin-left: auto;
        margin-right: 8px;
    }
    .search-input-wrapper.active {
        width: 140px;
    }
    .search-toggle-btn {
        font-size: 16px;
        min-width: 32px;
        min-height: 32px;
    }
    .search-results-dropdown {
        width: 280px;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 70px;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper.active {
        width: 120px;
    }
    .search-results-dropdown {
        width: 90vw;
        top: 65px;
    }
}

/* Follow System Styles */
.follow-btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    margin-top: 15px;
    border: 2px solid #FF073A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.follow-btn.follow {
    background: #FF073A;
    color: white;
    box-shadow: 0 0 15px rgba(255, 7, 58, 0.4);
}

.follow-btn.unfollow {
    background: transparent;
    color: #FF073A;
}

.follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 7, 58, 0.6);
}

.follow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 7, 58, 0.1);
}

.stat-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Follows Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 7, 58, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 7, 58, 0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    color: #FF073A;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 10px 0;
    overflow-y: auto;
    flex: 1;
}

.mutual-label {
    padding: 15px 20px 5px;
    font-size: 10px;
    color: #FF073A;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 7, 58, 0.05);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: background 0.2s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.list-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 7, 58, 0.3);
    object-fit: cover;
    cursor: pointer;
}

.list-info {
    flex: 1;
    cursor: pointer;
}

.list-name {
    font-size: 14px;
    color: white;
}

.list-badge {
    font-size: 9px;
    color: #888;
}

.list-action-btn {
    padding: 6px 12px;
    font-size: 10px;
    border-radius: 15px;
}
