/* User Profile Dropdown - Minimal Styles */

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-info {
    flex: 1;
}

.profile-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.profile-token-count {
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f0f0f0;
    padding: 1px;
}

.stat-item {
    background: white;
    padding: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.profile-actions {
    padding: 12px;
    background: #fafafa;
}

.profile-search-history {
    max-height: 250px;
    overflow-y: auto;
    background: white;
}

.profile-section-header {
    padding: 12px 16px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafafa;
}

.profile-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.profile-search-item:hover {
    background: #f8f8f8;
}

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

.search-item-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-details {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.search-item-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.profile-search-item:hover .search-item-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.profile-portrait-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #fafafa;
    max-height: 200px;
    overflow-y: auto;
}

.profile-portrait-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-portrait-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-portrait-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions {
    padding: 12px;
    background: #fafafa;
}

.profile-action-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.profile-action-btn:last-child {
    margin-bottom: 0;
}

.profile-action-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.profile-action-btn span {
    font-size: 1.2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-dropdown {
        right: -10px;
        min-width: 260px;
    }
    
    .profile-portrait-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #user-profile-btn .button-text {
        display: none;
    }
}
